- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 191 for Authorization (0.09 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
public final class Authenticate { private final OkHttpClient client; public Authenticate() { client = new OkHttpClient.Builder() .authenticator((route, response) -> { if (response.request().header("Authorization") != null) { return null; // Give up, we've already attempted to authenticate. } System.out.println("Authenticating for response: " + response);
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
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) -
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)