Module jcifs

Class KerberosEncData

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

public class KerberosEncData extends Object
Represents encrypted Kerberos ticket data.
  • Constructor Details

    • KerberosEncData

      public KerberosEncData(byte[] token, Map<Integer,KerberosKey> keys) throws PACDecodingException
      Constructs KerberosEncData from encrypted token bytes.
      Parameters:
      token - the encrypted Kerberos token
      keys - map of encryption keys indexed by key type
      Throws:
      PACDecodingException - if decoding fails
  • Method Details

    • decrypt

      public static byte[] decrypt(byte[] data, Key key, int type) throws GeneralSecurityException
      Decrypts Kerberos encrypted data using the specified key.
      Parameters:
      data - the encrypted data to decrypt
      key - the decryption key
      type - the encryption type
      Returns:
      the decrypted data
      Throws:
      GeneralSecurityException - if decryption fails
    • getUserRealm

      public String getUserRealm()
      Returns the user's Kerberos realm.
      Returns:
      the user realm
    • getUserPrincipalName

      public String getUserPrincipalName()
      Returns the user's principal name.
      Returns:
      the user principal name
    • getUserAddresses

      public ArrayList<InetAddress> getUserAddresses()
      Returns the list of user addresses.
      Returns:
      list of user InetAddress objects
    • getUserAuthorizations

      public List<KerberosAuthData> getUserAuthorizations()
      Returns the list of user authorization data.
      Returns:
      list of KerberosAuthData objects