Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 486 for Credential (0.05 seconds)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4Authentication.java

         * and sets the AuthScheme to null.
         * @param authScope The authentication scope.
         * @param credentials The credentials.
         */
        public Hc4Authentication(final AuthScope authScope, final Credentials credentials) {
            this(authScope, credentials, null);
        }
    
        /**
         * Initializes the Hc4Authentication with the provided AuthScope, Credentials, and AuthScheme.
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 08 14:22:26 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc5Authentication.java

         * and sets the AuthScheme to null.
         * @param authScope The authentication scope.
         * @param credentials The credentials.
         */
        public Hc5Authentication(final AuthScope authScope, final Credentials credentials) {
            this(authScope, credentials, null);
        }
    
        /**
         * Initializes the Hc5Authentication with the provided AuthScope, Credentials, and AuthScheme.
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 08 14:22:26 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

        }
    
        @Test
        @DisplayName("Should return the credentials provided in the constructor")
        void testGetCredentials() {
            assertEquals(mockCredentials, wrapper.getCredentials(), "getCredentials should return the initially set credentials");
        }
    
        @Test
        @DisplayName("Should renew credentials when they are renewable and renew() returns new credentials")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/config/CredentialsConfig.java

     */
    package org.codelibs.fess.crawler.client.http.config;
    
    /**
     * POJO configuration for credentials that can be converted to
     * either HC4 Credentials or HC5 Credentials.
     *
     * <p>This class provides a library-independent way to configure
     * authentication credentials that work with both Apache HttpComponents 4.x
     * and 5.x clients.</p>
     *
     * <p>Example usage:</p>
     * <pre>{@code
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Jan 08 14:22:26 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  5. fastapi/security/http.py

        security = HTTPBearer()
    
    
        @app.get("/users/me")
        def read_current_user(
            credentials: Annotated[HTTPAuthorizationCredentials, Depends(security)]
        ):
            return {"scheme": credentials.scheme, "credentials": credentials.credentials}
        ```
        """
    
        def __init__(
            self,
            *,
            bearerFormat: Annotated[str | None, Doc("Bearer token format.")] = None,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. tests/test_security_http_base_optional.py

    security = HTTPBase(scheme="Other", auto_error=False)
    
    
    @app.get("/users/me")
    def read_current_user(
        credentials: HTTPAuthorizationCredentials | None = Security(security),
    ):
        if credentials is None:
            return {"msg": "Create an account first"}
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_base():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2K bytes
    - Click Count (0)
  7. cmd/object-handlers_test.go

    			objectName:         objectName,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusOK,
    		},
    		// Test case - 2.
    		// Case with non-existent object name.
    		{
    			bucketName:         bucketName,
    			objectName:         "abcd",
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusNotFound,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 163.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

        private Credentials creds;
    
        /**
         * Constructs a CIFS context wrapper with custom credentials.
         *
         * @param delegate the context to wrap
         * @param creds
         *            Credentials to use
         */
        public CIFSContextCredentialWrapper(final AbstractCIFSContext delegate, final Credentials creds) {
            super(delegate);
            this.creds = creds;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/CredentialsTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for Credentials interface functionality
     */
    @DisplayName("Credentials Interface Tests")
    class CredentialsTest extends BaseTest {
    
        @Mock
        private Credentials mockCredentials;
    
        @Test
        @DisplayName("Should define interface methods")
        void testCredentialsInterface() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/CIFSContextTest.java

            verify(mockContext).getSIDResolver();
        }
    
        @Test
        @DisplayName("Should get Credentials")
        void testGetCredentials() {
            // Given
            Credentials mockCreds = mock(Credentials.class);
            when(mockContext.getCredentials()).thenReturn(mockCreds);
    
            // When
            Credentials creds = mockContext.getCredentials();
    
            // Then
            assertEquals(mockCreds, creds);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.8K bytes
    - Click Count (0)
Back to Top