Module jcifs

Class PacSignature

java.lang.Object
org.codelibs.jcifs.smb.pac.PacSignature

public class PacSignature extends Object
Represents a PAC signature structure containing checksum type and data. This class parses and holds signature information from Kerberos PAC data, supporting various checksum algorithms including HMAC-MD5 and HMAC-SHA1 with AES.
  • Field Details

    • KERB_CHECKSUM_HMAC_MD5

      public static final int KERB_CHECKSUM_HMAC_MD5
      Kerberos checksum type for HMAC-MD5 (ARCFOUR-HMAC).
      See Also:
    • HMAC_SHA1_96_AES128

      public static final int HMAC_SHA1_96_AES128
      Kerberos checksum type for HMAC-SHA1-96 with AES-128.
      See Also:
    • HMAC_SHA1_96_AES256

      public static final int HMAC_SHA1_96_AES256
      Kerberos checksum type for HMAC-SHA1-96 with AES-256.
      See Also:
    • ETYPE_ARCFOUR_HMAC

      public static final int ETYPE_ARCFOUR_HMAC
      Kerberos encryption type for ARCFOUR-HMAC (RC4-HMAC).
      See Also:
    • ETYPE_AES128_CTS_HMAC_SHA1_96

      public static final int ETYPE_AES128_CTS_HMAC_SHA1_96
      Kerberos encryption type for AES-128 CTS mode with HMAC-SHA1-96.
      See Also:
    • ETYPE_AES256_CTS_HMAC_SHA1_96

      public static final int ETYPE_AES256_CTS_HMAC_SHA1_96
      Kerberos encryption type for AES-256 CTS mode with HMAC-SHA1-96.
      See Also:
  • Constructor Details

    • PacSignature

      public PacSignature(byte[] data) throws PACDecodingException
      Constructs a PacSignature by parsing the provided data.
      Parameters:
      data - the raw signature data to parse
      Throws:
      PACDecodingException - if the data is malformed or cannot be parsed
  • Method Details

    • getType

      public int getType()
      Gets the checksum type of this signature.
      Returns:
      the checksum type constant
    • getChecksum

      public byte[] getChecksum()
      Gets the checksum data.
      Returns:
      the checksum bytes