|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.Checksum
public class Checksum
This class encapsulates the concept of a Kerberos checksum.
| Field Summary | |
|---|---|
static int |
CKSUMTYPE_CRC32
|
static int |
CKSUMTYPE_DES_MAC
|
static int |
CKSUMTYPE_DES_MAC_K
|
static int |
CKSUMTYPE_HMAC_MD5_ARCFOUR
|
static int |
CKSUMTYPE_HMAC_SHA1_96_AES128
|
static int |
CKSUMTYPE_HMAC_SHA1_96_AES256
|
static int |
CKSUMTYPE_HMAC_SHA1_DES3_KD
|
static int |
CKSUMTYPE_NULL
|
static int |
CKSUMTYPE_RSA_MD4
|
static int |
CKSUMTYPE_RSA_MD4_DES
|
static int |
CKSUMTYPE_RSA_MD4_DES_K
|
static int |
CKSUMTYPE_RSA_MD5
|
static int |
CKSUMTYPE_RSA_MD5_DES
|
static int |
CKSUMTYPE_USE_DEFAULT
|
| Constructor Summary | |
|---|---|
Checksum(byte[] data,
int new_cksumType,
Config kerberosConfig)
Constructs a new Checksum using the raw data and type. |
|
Checksum(int new_cksumType,
byte[] data,
Config kerberosConfig)
Constructs a new Checksum by calculating the checksum over the data using specified checksum type. |
|
Checksum(int new_cksumType,
byte[] data,
EncryptionKey key,
int usage,
Config kerberosConfig)
Constructs a new Checksum by calculating the keyed checksum over the data using specified checksum type. |
|
| Method Summary | |
|---|---|
byte[] |
asn1Encode()
Encodes a Checksum object. |
boolean |
equals(Object obj)
|
byte[] |
getBytes()
Returns the raw bytes of the checksum, not in ASN.1 encoded form. |
static int |
getChecksumdefault(Config kerberosConfig)
|
int |
getType()
|
int |
hashCode()
|
static Checksum |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
Parse (unmarshal) a checksum object from a DER input stream. |
boolean |
verifyKeyedChecksum(byte[] data,
EncryptionKey key,
int usage)
Verifies the keyed checksum over the data passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CKSUMTYPE_NULL
public static final int CKSUMTYPE_CRC32
public static final int CKSUMTYPE_RSA_MD4
public static final int CKSUMTYPE_RSA_MD4_DES
public static final int CKSUMTYPE_DES_MAC
public static final int CKSUMTYPE_DES_MAC_K
public static final int CKSUMTYPE_RSA_MD4_DES_K
public static final int CKSUMTYPE_RSA_MD5
public static final int CKSUMTYPE_RSA_MD5_DES
public static final int CKSUMTYPE_HMAC_SHA1_DES3_KD
public static final int CKSUMTYPE_HMAC_SHA1_96_AES128
public static final int CKSUMTYPE_HMAC_SHA1_96_AES256
public static final int CKSUMTYPE_HMAC_MD5_ARCFOUR
public static final int CKSUMTYPE_USE_DEFAULT
| Constructor Detail |
|---|
public Checksum(byte[] data,
int new_cksumType,
Config kerberosConfig)
public Checksum(int new_cksumType,
byte[] data,
Config kerberosConfig)
throws KdcErrException,
KrbCryptoException
KdcErrException
KrbCryptoException
public Checksum(int new_cksumType,
byte[] data,
EncryptionKey key,
int usage,
Config kerberosConfig)
throws KdcErrException,
KrbApErrException,
KrbCryptoException
KdcErrException
KrbApErrException
KrbCryptoException| Method Detail |
|---|
public static int getChecksumdefault(Config kerberosConfig)
public boolean verifyKeyedChecksum(byte[] data,
EncryptionKey key,
int usage)
throws KdcErrException,
KrbApErrException,
KrbCryptoException
KdcErrException
KrbApErrException
KrbCryptoException
public byte[] asn1Encode()
throws Asn1Exception,
IOException
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.
public static Checksum parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
IOException
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.public final byte[] getBytes()
public final int getType()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||