org.apache.directory.server.kerberos.shared.crypto.encryption
Class EncryptionType

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionType
All Implemented Interfaces:
java.lang.Comparable<EncryptionType>

public final class EncryptionType
extends java.lang.Object
implements java.lang.Comparable<EncryptionType>

A type-safe enumeration of Kerberos encryption types.

Version:
$Rev: 558912 $, $Date: 2007-07-23 21:58:46 -0400 (Mon, 23 Jul 2007) $
Author:
Apache Directory Project

Field Summary
static EncryptionType AES128_CTS_HMAC_SHA1_96
          The aes128-cts-hmac-sha1-96 encryption type.
static EncryptionType AES256_CTS_HMAC_SHA1_96
          The aes256-cts-hmac-sha1-96 encryption type.
static EncryptionType DES_CBC_CRC
          The des-cbc-crc encryption type.
static EncryptionType DES_CBC_MD4
          The des-cbc-md4 encryption type.
static EncryptionType DES_CBC_MD5
          The des-cbc-md5 encryption type.
static EncryptionType DES_EDE3_CBC_ENVOID
          The des-ede3-cbc-EnvOID encryption type.
static EncryptionType DES3_CBC_MD5
          The des3-cbc-md5 encryption type.
static EncryptionType DES3_CBC_SHA1
          The des3-cbc-sha1 encryption type.
static EncryptionType DES3_CBC_SHA1_KD
          The des3-cbc-sha1-kd encryption type.
static EncryptionType ID_DSA_WITH_SHA1_CMSOID
          The id-dsa-with-sha1-CmsOID encryption type.
static EncryptionType ID_RSAES_OAEP_ENVOID
          The id-RSAES-OAEP-EnvOID encryption type.
static EncryptionType MD5WITHRSAENCRYPTION_CMSOID
          The md5WithRSAEncryption-CmsOID encryption type.
static EncryptionType NULL
          The "null" encryption type.
static EncryptionType RC2_CBC_ENVOID
          The rc2-cbc-EnvOID encryption type.
static EncryptionType RC4_HMAC
          The rc4-hmac encryption type.
static EncryptionType RC4_HMAC_EXP
          The rc4-hmac-exp encryption type.
static EncryptionType RC4_HMAC_OLD
          The c4-hmac-old encryption type.
static EncryptionType RC4_HMAC_OLD_EXP
          The rc4-hmac-old-exp encryption type.
static EncryptionType RC4_MD4
          The rc4-md4 encryption type.
static EncryptionType RESERVED4
          The reserved (4) encryption type.
static EncryptionType RESERVED6
          The reserved (6) encryption type.
static EncryptionType RSAENCRYPTION_ENVOID
          The rsaEncryption-EnvOID encryption type.
static EncryptionType SHA_1WITHRSAENCRYPTION_CMSOID
          The sha-1WithRSAEncryption-CmsOID encryption type.
static EncryptionType SUBKEY_KEYMATERIAL
          The subkey-keymaterial encryption type.
static EncryptionType UNKNOWN
          The "unknown" encryption type.
static java.util.List<EncryptionType> VALUES
          A List of all the encryption type constants.
 
Method Summary
 int compareTo(EncryptionType that)
           
 java.lang.String getName()
          Returns the name associated with this encryption type.
 int getOrdinal()
          Returns the number associated with this encryption type.
static EncryptionType getTypeByOrdinal(int type)
          Returns the encryption type when specified by its ordinal.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final EncryptionType UNKNOWN
The "unknown" encryption type.


NULL

public static final EncryptionType NULL
The "null" encryption type.


DES_CBC_CRC

public static final EncryptionType DES_CBC_CRC
The des-cbc-crc encryption type.


DES_CBC_MD4

public static final EncryptionType DES_CBC_MD4
The des-cbc-md4 encryption type.


DES_CBC_MD5

public static final EncryptionType DES_CBC_MD5
The des-cbc-md5 encryption type.


RESERVED4

public static final EncryptionType RESERVED4
The reserved (4) encryption type.


DES3_CBC_MD5

public static final EncryptionType DES3_CBC_MD5
The des3-cbc-md5 encryption type.


RESERVED6

public static final EncryptionType RESERVED6
The reserved (6) encryption type.


DES3_CBC_SHA1

public static final EncryptionType DES3_CBC_SHA1
The des3-cbc-sha1 encryption type.


ID_DSA_WITH_SHA1_CMSOID

public static final EncryptionType ID_DSA_WITH_SHA1_CMSOID
The id-dsa-with-sha1-CmsOID encryption type.


MD5WITHRSAENCRYPTION_CMSOID

public static final EncryptionType MD5WITHRSAENCRYPTION_CMSOID
The md5WithRSAEncryption-CmsOID encryption type.


SHA_1WITHRSAENCRYPTION_CMSOID

public static final EncryptionType SHA_1WITHRSAENCRYPTION_CMSOID
The sha-1WithRSAEncryption-CmsOID encryption type.


RC2_CBC_ENVOID

public static final EncryptionType RC2_CBC_ENVOID
The rc2-cbc-EnvOID encryption type.


RSAENCRYPTION_ENVOID

public static final EncryptionType RSAENCRYPTION_ENVOID
The rsaEncryption-EnvOID encryption type.


ID_RSAES_OAEP_ENVOID

public static final EncryptionType ID_RSAES_OAEP_ENVOID
The id-RSAES-OAEP-EnvOID encryption type.


DES_EDE3_CBC_ENVOID

public static final EncryptionType DES_EDE3_CBC_ENVOID
The des-ede3-cbc-EnvOID encryption type.


DES3_CBC_SHA1_KD

public static final EncryptionType DES3_CBC_SHA1_KD
The des3-cbc-sha1-kd encryption type.


AES128_CTS_HMAC_SHA1_96

public static final EncryptionType AES128_CTS_HMAC_SHA1_96
The aes128-cts-hmac-sha1-96 encryption type.


AES256_CTS_HMAC_SHA1_96

public static final EncryptionType AES256_CTS_HMAC_SHA1_96
The aes256-cts-hmac-sha1-96 encryption type.


RC4_HMAC

public static final EncryptionType RC4_HMAC
The rc4-hmac encryption type.


RC4_HMAC_EXP

public static final EncryptionType RC4_HMAC_EXP
The rc4-hmac-exp encryption type.


SUBKEY_KEYMATERIAL

public static final EncryptionType SUBKEY_KEYMATERIAL
The subkey-keymaterial encryption type.


RC4_MD4

public static final EncryptionType RC4_MD4
The rc4-md4 encryption type.


RC4_HMAC_OLD

public static final EncryptionType RC4_HMAC_OLD
The c4-hmac-old encryption type.


RC4_HMAC_OLD_EXP

public static final EncryptionType RC4_HMAC_OLD_EXP
The rc4-hmac-old-exp encryption type.


VALUES

public static final java.util.List<EncryptionType> VALUES
A List of all the encryption type constants.

Method Detail

getTypeByOrdinal

public static EncryptionType getTypeByOrdinal(int type)
Returns the encryption type when specified by its ordinal.

Parameters:
type -
Returns:
The encryption type.

getOrdinal

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

Returns:
The encryption type number.

getName

public java.lang.String getName()
Returns the name associated with this encryption type.

Returns:
The name.

compareTo

public int compareTo(EncryptionType that)
Specified by:
compareTo in interface java.lang.Comparable<EncryptionType>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.