Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 41 for get_credentials (0.63 seconds)

  1. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. 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);
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  3. 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);
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  4. 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();
            }
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Mon Nov 24 04:23:08 GMT 2025
    - 6K bytes
    - Click Count (0)
  5. 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
         */
        /**
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                    formSchemeList.add(new Pair<>((FormScheme) authScheme, authentication.getCredentials()));
                } else {
                    final AuthScope authScope = authentication.getAuthScope();
                    credentialsProvider.setCredentials(authScope, authentication.getCredentials());
                    if (authScope.getHost() != null && authScheme != null) {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 12:19:14 GMT 2025
    - 53.7K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

                        builder.setHost(endpoint);
                        builder.setCredentials(NoCredentials.getInstance());
                    } else if (StringUtil.isNotBlank(credentialsFile)) {
                        // Use credentials file if specified
                        try (InputStream is = new FileInputStream(credentialsFile)) {
                            builder.setCredentials(ServiceAccountCredentials.fromStream(is));
                        }
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/storage/GcsStorageClient.java

                builder.setProjectId(projectId);
            }
    
            if (StringUtil.isNotBlank(endpoint)) {
                // For fake-gcs-server or custom endpoint
                builder.setHost(endpoint);
                builder.setCredentials(NoCredentials.getInstance());
                if (logger.isDebugEnabled()) {
                    logger.debug("Using custom GCS endpoint: {}", endpoint);
                }
            } else {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.3K bytes
    - Click Count (0)
  9. 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) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 29.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/CredentialsInternalTest.java

                }
                // Exercise interaction with dependency for verification purposes
                // These methods do not throw and allow interaction checks.
                tc.getConfig();
                tc.getCredentials();
    
                // Minimal behavior: return a mock SSPContext with lenient stubbing
                SSPContext ctx = mock(SSPContext.class);
                lenient().when(ctx.isEstablished()).thenReturn(false);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
Back to Top