java.lang.Object
org.codelibs.jcifs.smb.pac.kerberos.KerberosCredentials
Kerberos credentials management class that handles authentication through JAAS.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates KerberosCredentials using the default JAAS configuration.KerberosCredentials(String loginContextName) Creates KerberosCredentials using the specified JAAS login context. -
Method Summary
-
Constructor Details
-
KerberosCredentials
Creates KerberosCredentials using the default JAAS configuration.- Throws:
LoginException- if authentication fails
-
KerberosCredentials
Creates KerberosCredentials using the specified JAAS login context.- Parameters:
loginContextName- the name of the JAAS login context- Throws:
LoginException- if authentication fails
-
-
Method Details
-
getKeys
Retrieves all Kerberos keys from the authenticated subject.- Returns:
- array of KerberosKey objects
-
getKey
Retrieves a specific Kerberos key by key type.- Parameters:
keyType- the encryption type of the key to retrieve- Returns:
- the KerberosKey with the specified type, or null if not found
-
getSubject
Returns the authenticated JAAS Subject.- Returns:
- the authenticated Subject
-