java.lang.Object
org.codelibs.jcifs.smb.pac.kerberos.KerberosTicket
Represents a Kerberos ticket.
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosTicket(byte[] token, byte apOptions, KerberosKey[] keys) Constructs a KerberosTicket from token bytes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the encrypted data from the ticket.Returns the server principal name from the ticket.Returns the server realm from the ticket.Returns the user principal name from the ticket.Returns the user realm from the ticket.
-
Constructor Details
-
KerberosTicket
Constructs a KerberosTicket from token bytes.- Parameters:
token- the ticket token bytesapOptions- AP options flagskeys- array of Kerberos keys for decryption- Throws:
PACDecodingException- if ticket decoding fails
-
-
Method Details
-
getUserPrincipalName
Returns the user principal name from the ticket.- Returns:
- the user principal name
-
getUserRealm
Returns the user realm from the ticket.- Returns:
- the user realm
-
getServerPrincipalName
Returns the server principal name from the ticket.- Returns:
- the server principal name
-
getServerRealm
Returns the server realm from the ticket.- Returns:
- the server realm
-
getEncData
Returns the encrypted data from the ticket.- Returns:
- the KerberosEncData object
-