Module jcifs

Class KerberosTicket

java.lang.Object
org.codelibs.jcifs.smb.pac.kerberos.KerberosTicket

public class KerberosTicket extends Object
Represents a Kerberos ticket.
  • Constructor Details

    • KerberosTicket

      public KerberosTicket(byte[] token, byte apOptions, KerberosKey[] keys) throws PACDecodingException
      Constructs a KerberosTicket from token bytes.
      Parameters:
      token - the ticket token bytes
      apOptions - AP options flags
      keys - array of Kerberos keys for decryption
      Throws:
      PACDecodingException - if ticket decoding fails
  • Method Details

    • getUserPrincipalName

      public String getUserPrincipalName()
      Returns the user principal name from the ticket.
      Returns:
      the user principal name
    • getUserRealm

      public String getUserRealm()
      Returns the user realm from the ticket.
      Returns:
      the user realm
    • getServerPrincipalName

      public String getServerPrincipalName()
      Returns the server principal name from the ticket.
      Returns:
      the server principal name
    • getServerRealm

      public String getServerRealm()
      Returns the server realm from the ticket.
      Returns:
      the server realm
    • getEncData

      public KerberosEncData getEncData()
      Returns the encrypted data from the ticket.
      Returns:
      the KerberosEncData object