| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | Checksum(byte[]
the byte array of checksum. data, int the type of checksum. new_cksumType)Constructs a new Checksum using the raw data and type. |
| public | Checksum(int
the type of checksum. If set to -1, the
mandatory checksum type
for the encryption type of new_cksumType, byte[] key will be usedthe data that needs to be performed a checksum calculation on data, EncryptionKey the key used by a keyed checksum key, int the usage used by a keyed checksum usage)Constructs a new Checksum by calculating over the data using the specified checksum type. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final byte[] | |
| public final int | |
| public int | |
| pack-priv boolean | |
| public static Checksum | Returns: an instance of Checksum.the Der input stream value, which contains one or more
marshaled value. data, byte tag number. explicitTag, boolean indicates if this data field is optional optional)Parse (unmarshal) a checksum object from a DER input stream. |
| public boolean | verifyAnyChecksum(byte[] data, EncryptionKey key, int usage)
Verifies the checksum over the data passed in. The checksum might be a keyed or not. |
| checksum | back to summary |
|---|---|
| private byte[] checksum | |
| cksumType | back to summary |
|---|---|
| private int cksumType | |
| CKSUMTYPE_CRC32 | back to summary |
|---|---|
| public static final int CKSUMTYPE_CRC32 | |
| CKSUMTYPE_DES_MAC | back to summary |
|---|---|
| public static final int CKSUMTYPE_DES_MAC | |
| CKSUMTYPE_DES_MAC_K | back to summary |
|---|---|
| public static final int CKSUMTYPE_DES_MAC_K | |
| CKSUMTYPE_HMAC_MD5_ARCFOUR | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_MD5_ARCFOUR | |
| CKSUMTYPE_HMAC_SHA1_96_AES128 | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_SHA1_96_AES128 | |
| CKSUMTYPE_HMAC_SHA1_96_AES256 | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_SHA1_96_AES256 | |
| CKSUMTYPE_HMAC_SHA1_DES3_KD | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_SHA1_DES3_KD | |
| CKSUMTYPE_HMAC_SHA256_128_AES128 | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_SHA256_128_AES128 | |
| CKSUMTYPE_HMAC_SHA384_192_AES256 | back to summary |
|---|---|
| public static final int CKSUMTYPE_HMAC_SHA384_192_AES256 | |
| CKSUMTYPE_NULL | back to summary |
|---|---|
| public static final int CKSUMTYPE_NULL | |
| CKSUMTYPE_RSA_MD4 | back to summary |
|---|---|
| public static final int CKSUMTYPE_RSA_MD4 | |
| CKSUMTYPE_RSA_MD4_DES | back to summary |
|---|---|
| public static final int CKSUMTYPE_RSA_MD4_DES | |
| CKSUMTYPE_RSA_MD4_DES_K | back to summary |
|---|---|
| public static final int CKSUMTYPE_RSA_MD4_DES_K | |
| CKSUMTYPE_RSA_MD5 | back to summary |
|---|---|
| public static final int CKSUMTYPE_RSA_MD5 | |
| CKSUMTYPE_RSA_MD5_DES | back to summary |
|---|---|
| public static final int CKSUMTYPE_RSA_MD5_DES | |
| Checksum | back to summary |
|---|---|
| public Checksum(byte[] data, int new_cksumType) Constructs a new Checksum using the raw data and type.
This constructor is only used by Authenticator Checksum
| |
| Checksum | back to summary |
|---|---|
| public Checksum(int new_cksumType, byte[] data, EncryptionKey key, int usage) throws KdcErrException, KrbApErrException, KrbCryptoException Constructs a new Checksum by calculating over the data using the specified checksum type. If the checksum is unkeyed, key and usage are ignored.
| |
| Checksum | back to summary |
|---|---|
| public Checksum(DerValue encoding) throws Asn1Exception, IOException Constructs an instance of Checksum from an ASN.1 encoded representation.
| |
| asn1Encode | back to summary |
|---|---|
| public byte[] asn1Encode() throws Asn1Exception, IOException Encodes a Checksum object.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getBytes | back to summary |
|---|---|
| public final byte[] getBytes() Returns the raw bytes of the checksum, not in ASN.1 encoded form. | |
| getType | back to summary |
|---|---|
| public final int getType() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEqual | back to summary |
|---|---|
| pack-priv boolean isEqual(Checksum cksum) throws KdcErrException | |
| parse | back to summary |
|---|---|
| public static Checksum parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException Parse (unmarshal) a checksum object from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.
| |
| verifyAnyChecksum | back to summary |
|---|---|
| public boolean verifyAnyChecksum(byte[] data, EncryptionKey key, int usage) throws KdcErrException, KrbCryptoException Verifies the checksum over the data passed in. The checksum might be a keyed or not. =============== ATTENTION! Use with care ================== According to https://tools.ietf.org/html/rfc3961#section-6.1, An unkeyed checksum should only be used "in limited circumstances where the lack of a key does not provide a window for an attack, preferably as part of an encrypted message". | |