org.apache.directory.server.kerberos.shared.crypto.checksum
Enum ChecksumType

java.lang.Object
  extended by java.lang.Enum<ChecksumType>
      extended by org.apache.directory.server.kerberos.shared.crypto.checksum.ChecksumType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ChecksumType>

public enum ChecksumType
extends java.lang.Enum<ChecksumType>
implements java.lang.Comparable<ChecksumType>

A type-safe enumeration of Kerberos checksum types.

Version:
$Rev: 588239 $, $Date: 2007-10-25 16:24:28 +0200 (Thu, 25 Oct 2007) $
Author:
Apache Directory Project

Enum Constant Summary
CRC32
          The CRC32 checksum type.
DES_MAC
          The des-mac checksum type.
DES_MAC_K
          The des-mac-k checksum type.
HMAC_MD5
          The hmac-md5 checksum type.
HMAC_SHA1_96_AES128
          The hmac-sha1-96-aes128 checksum type.
HMAC_SHA1_96_AES256
          The hmac-sha1-96-aes256 checksum type.
HMAC_SHA1_DES3
          The hmac-sha1-des3 checksum type.
HMAC_SHA1_DES3_KD
          The hmac-sha1-des3-kd checksum type.
NULL
          The "null" checksum type.
RSA_MD4
          The rsa-md4 checksum type.
RSA_MD4_DES
          The rsa-md4-des checksum type.
RSA_MD4_DES_K
          The rsa-md4-des-k checksum type.
RSA_MD5
          The rsa-md5 checksum type.
RSA_MD5_DES
          The rsa-md5-des checksum type.
RSA_MD5_DES3
          The rsa-md5-des3 checksum type.
SHA1
          The sha1 (unkeyed) checksum type.
SHA1_2
          The sha1 (unkeyed) checksum type.
UNKNOWN
          The "unknown" checksum type.
 
Method Summary
 int getOrdinal()
          Returns the number associated with this checksum type.
static ChecksumType getTypeByOrdinal(int type)
          Returns the checksum type when specified by its ordinal.
static ChecksumType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ChecksumType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Enum Constant Detail

UNKNOWN

public static final ChecksumType UNKNOWN
The "unknown" checksum type.


NULL

public static final ChecksumType NULL
The "null" checksum type.


CRC32

public static final ChecksumType CRC32
The CRC32 checksum type.


RSA_MD4

public static final ChecksumType RSA_MD4
The rsa-md4 checksum type.


RSA_MD4_DES

public static final ChecksumType RSA_MD4_DES
The rsa-md4-des checksum type.


DES_MAC

public static final ChecksumType DES_MAC
The des-mac checksum type.


DES_MAC_K

public static final ChecksumType DES_MAC_K
The des-mac-k checksum type.


RSA_MD4_DES_K

public static final ChecksumType RSA_MD4_DES_K
The rsa-md4-des-k checksum type.


RSA_MD5

public static final ChecksumType RSA_MD5
The rsa-md5 checksum type.


RSA_MD5_DES

public static final ChecksumType RSA_MD5_DES
The rsa-md5-des checksum type.


RSA_MD5_DES3

public static final ChecksumType RSA_MD5_DES3
The rsa-md5-des3 checksum type.


SHA1

public static final ChecksumType SHA1
The sha1 (unkeyed) checksum type.


HMAC_SHA1_DES3_KD

public static final ChecksumType HMAC_SHA1_DES3_KD
The hmac-sha1-des3-kd checksum type.


HMAC_SHA1_DES3

public static final ChecksumType HMAC_SHA1_DES3
The hmac-sha1-des3 checksum type.


SHA1_2

public static final ChecksumType SHA1_2
The sha1 (unkeyed) checksum type.


HMAC_SHA1_96_AES128

public static final ChecksumType HMAC_SHA1_96_AES128
The hmac-sha1-96-aes128 checksum type.


HMAC_SHA1_96_AES256

public static final ChecksumType HMAC_SHA1_96_AES256
The hmac-sha1-96-aes256 checksum type.


HMAC_MD5

public static final ChecksumType HMAC_MD5
The hmac-md5 checksum type.

Method Detail

values

public static ChecksumType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ChecksumType c : ChecksumType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ChecksumType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTypeByOrdinal

public static ChecksumType getTypeByOrdinal(int type)
Returns the checksum type when specified by its ordinal.

Parameters:
type -
Returns:
The checksum type.

getOrdinal

public int getOrdinal()
Returns the number associated with this checksum type.

Returns:
The checksum type ordinal.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.