com.dstc.security.kerberos
Class Checksum

java.lang.Object
  |
  +--com.dstc.security.kerberos.Checksum

public class Checksum
extends Object

A class representing a Kerberos checksum. A checksum consists of a type and a value. Several values for the checksum type have been standardized at the IETF. Supported types in this release are listed in Kerberos. Checksum is defined in RFC1510 by the ASN.1 structure

 Checksum ::=  SEQUENCE {
                 cksumtype[0]    INTEGER,
                 checksum[1]     OCTET STRING
 }
 

See Also:
Kerberos

Constructor Summary
Checksum(int cksumType, byte[] cksum)
          Constructs a Checksum from a type and value
 
Method Summary
 byte[] getBytes()
          Returns the bytes for this checksum
 int getType()
          Returns the type for this checksum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Checksum

public Checksum(int cksumType,
                byte[] cksum)
Constructs a Checksum from a type and value
Method Detail

getType

public int getType()
Returns the type for this checksum

getBytes

public byte[] getBytes()
Returns the bytes for this checksum