java.lang.Object
org.codelibs.jcifs.smb.pac.kerberos.KerberosEncData
Represents encrypted Kerberos ticket data.
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosEncData(byte[] token, Map<Integer, KerberosKey> keys) Constructs KerberosEncData from encrypted token bytes. -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Decrypts Kerberos encrypted data using the specified key.Returns the list of user addresses.Returns the list of user authorization data.Returns the user's principal name.Returns the user's Kerberos realm.
-
Constructor Details
-
KerberosEncData
Constructs KerberosEncData from encrypted token bytes.- Parameters:
token- the encrypted Kerberos tokenkeys- map of encryption keys indexed by key type- Throws:
PACDecodingException- if decoding fails
-
-
Method Details
-
decrypt
Decrypts Kerberos encrypted data using the specified key.- Parameters:
data- the encrypted data to decryptkey- the decryption keytype- the encryption type- Returns:
- the decrypted data
- Throws:
GeneralSecurityException- if decryption fails
-
getUserRealm
Returns the user's Kerberos realm.- Returns:
- the user realm
-
getUserPrincipalName
Returns the user's principal name.- Returns:
- the user principal name
-
getUserAddresses
Returns the list of user addresses.- Returns:
- list of user InetAddress objects
-
getUserAuthorizations
Returns the list of user authorization data.- Returns:
- list of KerberosAuthData objects
-