| java.lang.Object | |
| ↳ | sun.security.mule.krb5.Checksum |
This class encapsulates the concept of a Kerberos checksum.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CKSUMTYPE_CRC32 | ||||||||||
| int | CKSUMTYPE_DES_MAC | ||||||||||
| int | CKSUMTYPE_DES_MAC_K | ||||||||||
| int | CKSUMTYPE_HMAC_MD5_ARCFOUR | ||||||||||
| int | CKSUMTYPE_HMAC_SHA1_96_AES128 | ||||||||||
| int | CKSUMTYPE_HMAC_SHA1_96_AES256 | ||||||||||
| int | CKSUMTYPE_HMAC_SHA1_DES3_KD | ||||||||||
| int | CKSUMTYPE_NULL | ||||||||||
| int | CKSUMTYPE_RSA_MD4 | ||||||||||
| int | CKSUMTYPE_RSA_MD4_DES | ||||||||||
| int | CKSUMTYPE_RSA_MD4_DES_K | ||||||||||
| int | CKSUMTYPE_RSA_MD5 | ||||||||||
| int | CKSUMTYPE_RSA_MD5_DES | ||||||||||
| int | CKSUMTYPE_USE_DEFAULT | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CKSUMTYPE_DEFAULT | |||||||||||
| DEBUG | |||||||||||
| SAFECKSUMTYPE_DEFAULT | |||||||||||
| checksum | |||||||||||
| cksumType | |||||||||||
| inited | |||||||||||
| kerberosConfig | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new Checksum using the raw data and type.
| |||||||||||
Constructs a new Checksum by calculating the checksum over the data
using specified checksum type.
| |||||||||||
Constructs a new Checksum by calculating the keyed checksum
over the data using specified checksum type.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Encodes a Checksum object.
| |||||||||||
Returns the raw bytes of the checksum, not in ASN.1 encoded form.
| |||||||||||
Parse (unmarshal) a checksum object from a DER input stream.
| |||||||||||
Verifies the keyed checksum over the data passed in.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new Checksum using the raw data and type.
| data | |
|---|---|
| new_cksumType | |
| kerberosConfig |
Constructs a new Checksum by calculating the checksum over the data using specified checksum type.
| new_cksumType | |
|---|---|
| data | |
| kerberosConfig |
Constructs a new Checksum by calculating the keyed checksum over the data using specified checksum type.
| new_cksumType | |
|---|---|
| data | |
| key | |
| usage | |
| kerberosConfig |
Encodes a Checksum object.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
| Asn1Exception | if an error occurs while decoding an ASN1 encoded data. |
|---|---|
| IOException | if an I/O error occurs while reading encoded data. |
| obj |
|---|
Returns the raw bytes of the checksum, not in ASN.1 encoded form.
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.
| data | The Der input stream value, which contains one or more marshaled value. |
|---|---|
| explicitTag | Tag number. |
| optional | Indicates if this data field is optional |
| Asn1Exception | if an error occurs while decoding an ASN1 encoded data. |
|---|---|
| IOException | if an I/O error occurs while reading encoded data. |
Verifies the keyed checksum over the data passed in.
| data | |
|---|---|
| key | |
| usage |