- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for LoginContext (0.04 sec)
-
src/test/java/jcifs/pac/kerberos/KerberosCredentialsTest.java
import org.mockito.MockitoAnnotations; /** * Test class for KerberosCredentials. */ class KerberosCredentialsTest { @Mock private LoginContext loginContext; @Mock private Subject subject; @Mock private KerberosKey key1; @Mock private KerberosKey key2; private static final String LOGIN_CONTEXT_NAME = "TestLoginContext"; private static final int KEY_TYPE_1 = 1;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
} try { log.debug("Logging on"); LoginContext lc; Subject ps = super.getSubject(); if (this.configuration != null) { lc = new LoginContext(this.serviceName, ps, this, this.configuration); } else if (ps != null) { lc = new LoginContext(this.serviceName, ps, this); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosCredentials.java
* @param loginContextName the name of the JAAS login context * @throws LoginException if authentication fails */ public KerberosCredentials(String loginContextName) throws LoginException { LoginContext lc = new LoginContext(loginContextName); lc.login(); this.subject = lc.getSubject(); } /** * Retrieves all Kerberos keys from the authenticated subject. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
JAASAuthenticator orig = new JAASAuthenticator(new HashMap<String, String>(), "DOM", "user", "pass"); // Provide a Subject in super to drive a specific LoginContext constructor branch Subject presetSubject = new Subject(); orig.setSubject(presetSubject); // Try to get a Subject, but handle the case where JAAS may not be configured
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0)