Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for setCredentials (0.07 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            if (this.server.security == SmbConstants.SECURITY_SHARE && this.ctx.getCredentials() instanceof NtlmPasswordAuthenticator) {
                final NtlmPasswordAuthenticator pwAuth = (NtlmPasswordAuthenticator) this.ctx.getCredentials();
                if (isExternalAuth(pwAuth)) {
                    this.passwordLength = 1;
                } else if (this.server.encryptedPasswords) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/CIFSContextTest.java

            // Given
            Credentials mockCreds = mock(Credentials.class);
            when(mockContext.getCredentials()).thenReturn(mockCreds);
    
            // When
            Credentials creds = mockContext.getCredentials();
    
            // Then
            assertEquals(mockCreds, creds);
            verify(mockContext).getCredentials();
        }
    
        @Test
        @DisplayName("Should get URLStreamHandler")
        void testGetUrlHandler() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/CIFSContextWrapperTest.java

        }
    
        @Test
        void testGetCredentials() {
            // Test getCredentials() method
            Credentials mockCredentials = mock(Credentials.class);
            when(mockDelegate.getCredentials()).thenReturn(mockCredentials);
            assertEquals(mockCredentials, cifsContextWrapper.getCredentials());
            verify(mockDelegate).getCredentials();
        }
    
        @Test
        void testGetUrlHandler() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/context/AbstractCIFSContext.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getCredentials()
         */
        @Override
        public Credentials getCredentials() {
            return getDefaultCredentials();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#hasDefaultCredentials()
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/DfsResolverTest.java

        }
    
        @Test
        void testIsTrustedDomain_NoUserDomain() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getCredentials()).thenReturn(mockCredentials);
            when(mockCredentials.getUserDomain()).thenReturn(null);
            assertFalse(dfsResolver.isTrustedDomain(mockContext, "anyDomain"));
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

        /**
         * @param tf
         * @param tdom
         * @param thost
         * @return
         */
        protected boolean matches(CIFSContext tf, String thost, String tdom) {
            return Objects.equals(this.getCredentials(), tf.getCredentials()) && Objects.equals(this.targetHost, thost)
                    && Objects.equals(this.targetDomain, tdom);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/context/CIFSContextWrapper.java

        }
    
        @Override
        public DfsResolver getDfs() {
            return this.delegate.getDfs();
        }
    
        @Override
        public Credentials getCredentials() {
            return this.delegate.getCredentials();
        }
    
        @Override
        public URLStreamHandler getUrlHandler() {
            if (this.wrappedHandler == null) {
                this.wrappedHandler = new Handler(this);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/opensearch/config/exentity/WebAuthentication.java

        private WebConfig webConfig;
    
        public Authentication getAuthentication() {
            return new AuthenticationImpl(getAuthScope(), getCredentials(), getAuthScheme());
        }
    
        private AuthScheme getAuthScheme() {
            final String scheme = getProtocolScheme();
            if (Constants.BASIC.equals(scheme)) {
                return new BasicScheme();
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 04:23:08 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Authentication.java

        /**
         * Retrieves the credentials associated with the current authentication.
         *
         * @return the credentials object containing authentication details.
         */
        Credentials getCredentials();
    
        /**
         * Retrieves the authentication scheme to be used for HTTP requests.
         *
         * @return the authentication scheme
         */
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DfsImpl.java

        }
    
        private Map<String, Map<String, CacheEntry<DfsReferralDataInternal>>> getTrustedDomains(final CIFSContext tf) throws SmbAuthException {
            if (tf.getConfig().isDfsDisabled() || tf.getCredentials().getUserDomain() == null
                    || tf.getCredentials().getUserDomain().isEmpty()) {
                return null;
            }
    
            if (this._domains != null && System.currentTimeMillis() > this._domains.expiration) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
Back to top