Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for getCredentials (0.13 sec)

  1. src/test/java/jcifs/smb/SmbTransportImplTest.java

        void getSmbSession_createAndReuse() {
            // Arrange: minimal credentials chain so SmbSessionImpl constructor succeeds
            CredentialsInternal creds = mock(CredentialsInternal.class);
            when(ctx.getCredentials()).thenReturn(creds);
            when(creds.unwrap(CredentialsInternal.class)).thenReturn(creds);
            when(creds.clone()).thenReturn(creds);
    
            assertEquals(0, transport.getNumSessions());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  2. 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) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 12:19:14 UTC 2025
    - 53.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                throw new SmbException("Service is NULL");
            }
    
            if (transport.getContext().getConfig().isIpcSigningEnforced() && ("IPC$".equals(this.getShare()) || "IPC".equals(rsvc))
                    && !sess.getCredentials().isAnonymous() && sess.getDigest() == null) {
                throw new SmbException("IPC signing is enforced, but no signing is available");
            }
    
            this.service = rsvc;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

         *
         * @see jcifs.smb.SmbResourceLocatorInternal#shouldForceSigning()
         */
        @Override
        public boolean shouldForceSigning() {
            return this.ctx.getConfig().isIpcSigningEnforced() && !this.ctx.getCredentials().isAnonymous() && isIPC();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#isIPC()
         */
        @Override
        public boolean isIPC() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        public byte[] getChallenge(final CIFSContext tf, final Address dc, final int port) throws SmbException {
            try (SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class)) {
                trans.ensureConnected();
                return trans.getServerEncryptionKey();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

                    }
                    return ssn.acquire();
                }
                if (log.isTraceEnabled()) {
                    log.trace("Existing session " + ssn + " does not match " + tf.getCredentials());
                }
            }
    
            /* logoff old sessions */
            if (tf.getConfig().getSessionTimeout() > 0 && this.sessionExpiration < (now = System.currentTimeMillis())) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (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));
                        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (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 {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. tests/test_dependency_paramless.py

            raise HTTPException(detail="a or b not in scopes", status_code=401)
        return {"token": credentials, "scopes": security_scopes.scopes}
    
    
    @app.get("/get-credentials")
    def get_credentials(
        credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])],
    ):
        return credentials
    
    
    @app.get(
        "/parameterless-with-scopes",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/gcs/GcsClient.java

            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 {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 17.5K bytes
    - Viewed (0)
Back to top