Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for Authorization (0.09 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosAuthData.java

         * @param token the authorization data token
         * @param keys the Kerberos keys for decryption
         * @return a list of parsed authorization data
         * @throws PACDecodingException if the data cannot be decoded
         */
        public static List<KerberosAuthData> parse(int authType, byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

            req.addHeader("Authorization", "Bearer " + token);
            assertEquals(token, accessTokenHelper.getAccessTokenFromRequest(req));
        }
    
        public void test_getAccessTokenFromRequest_ok1() {
            final String token = accessTokenHelper.generateAccessToken();
            MockletHttpServletRequest req = getMockRequest();
            req.addHeader("Authorization", token);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/NtlmServletTest.java

            // This should not throw an exception
            assertDoesNotThrow(() -> ntlmServlet.init(servletConfig));
        }
    
        /**
         * Test the service method when no Authorization header is present and no session exists.
         * Expects a 401 Unauthorized response with NTLM and Basic authentication challenges.
         * @throws ServletException
         * @throws IOException
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

            }).orElse(null);
        }
    
        /**
         * Gets the authorization URL for OpenID Connect.
         *
         * @param request the HTTP servlet request
         * @return the authorization URL
         */
        protected String getAuthUrl(final HttpServletRequest request) {
            final String state = UuidUtil.create();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt

     * and the implementation should respond with a new request that sets the "Authorization" header.
     *
     * ```java
     * if (response.request().header("Authorization") != null) {
     *   return null; // Give up, we've already failed to authenticate.
     * }
     *
     * String credential = Credentials.basic(...)
     * return response.request().newBuilder()
     *     .header("Authorization", credential)
     *     .build();
     * ```
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

            .add("content-length", "99")
            .add("authorization", "peanutbutter")
            .add("proxy-authorization", "chocolate")
            .add("cookie", "drink=coffee")
            .add("set-cookie", "accessory=sugar")
            .add("user-agent", "OkHttp")
            .build()
        assertThat(headers.toString()).isEqualTo(
          """
          |content-length: 99
          |authorization: ██
          |proxy-authorization: ██
          |cookie: ██
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/NtlmSspTest.java

        /**
         * Test case for when the 'Authorization' header is missing.
         * Expects the server to respond with a 'WWW-Authenticate: NTLM' header and a 401 status.
         * @throws IOException
         */
        @Test
        public void testAuthenticate_NoAuthorizationHeader() throws IOException {
            // Setup: No "Authorization" header
            when(mockRequest.getHeader("Authorization")).thenReturn(null);
    
            // Execute
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  8. src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java

            List<KerberosAuthData> authorizations = relevantAuthData.getAuthorizations();
            assertNotNull(authorizations, "The authorizations list should not be null.");
            assertEquals(1, authorizations.size(), "The authorizations list should contain one element.");
            assertEquals(mockAuthData, authorizations.get(0), "The authorization element should be the mocked object.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. cmd/jwt_test.go

    		expectedErr error
    	}{
    		// Set valid authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{
    					"Authorization": []string{token},
    				},
    			},
    			expectedErr: nil,
    		},
    		// No authorization header.
    		{
    			req: &http.Request{
    				Header: http.Header{},
    			},
    			expectedErr: errNoAuthToken,
    		},
    		// Invalid authorization token.
    		{
    			req: &http.Request{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpFilterTest.java

            // Initialize filter first
            initializeFilter();
    
            // Test request without Authorization header should challenge client
            when(request.getHeader("Authorization")).thenReturn(null);
            when(httpSession.getAttribute("NtlmHttpAuth")).thenReturn(null);
    
            filter.doFilter(request, response, filterChain);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top