java.lang.Object
org.codelibs.jcifs.smb.pac.PacSignature
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intKerberos encryption type for AES-128 CTS mode with HMAC-SHA1-96.static final intKerberos encryption type for AES-256 CTS mode with HMAC-SHA1-96.static final intKerberos encryption type for ARCFOUR-HMAC (RC4-HMAC).static final intKerberos checksum type for HMAC-SHA1-96 with AES-128.static final intKerberos checksum type for HMAC-SHA1-96 with AES-256.static final intKerberos checksum type for HMAC-MD5 (ARCFOUR-HMAC). -
Constructor Summary
ConstructorsConstructorDescriptionPacSignature(byte[] data) Constructs a PacSignature by parsing the provided data. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the checksum data.intgetType()Gets the checksum type of this signature.
-
Field Details
-
KERB_CHECKSUM_HMAC_MD5
public static final int KERB_CHECKSUM_HMAC_MD5Kerberos checksum type for HMAC-MD5 (ARCFOUR-HMAC).- See Also:
-
HMAC_SHA1_96_AES128
public static final int HMAC_SHA1_96_AES128Kerberos checksum type for HMAC-SHA1-96 with AES-128.- See Also:
-
HMAC_SHA1_96_AES256
public static final int HMAC_SHA1_96_AES256Kerberos checksum type for HMAC-SHA1-96 with AES-256.- See Also:
-
ETYPE_ARCFOUR_HMAC
public static final int ETYPE_ARCFOUR_HMACKerberos encryption type for ARCFOUR-HMAC (RC4-HMAC).- See Also:
-
ETYPE_AES128_CTS_HMAC_SHA1_96
public static final int ETYPE_AES128_CTS_HMAC_SHA1_96Kerberos 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_96Kerberos encryption type for AES-256 CTS mode with HMAC-SHA1-96.- See Also:
-
-
Constructor Details
-
PacSignature
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
-