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

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

public enum EncryptionType
extends java.lang.Enum<EncryptionType>

A type-safe enumeration of Kerberos encryption types.

Version:
$Rev: 587682 $, $Date: 2007-10-24 00:47:43 +0200 (Mi, 24 Okt 2007) $
Author:
Apache Directory Project

Enum Constant Summary
AES128_CTS_HMAC_SHA1_96
          The aes128-cts-hmac-sha1-96 encryption type.
AES256_CTS_HMAC_SHA1_96
          The aes256-cts-hmac-sha1-96 encryption type.
DES_CBC_CRC
          The des-cbc-crc encryption type.
DES_CBC_MD4
          The des-cbc-md4 encryption type.
DES_CBC_MD5
          The des-cbc-md5 encryption type.
DES_EDE3_CBC_ENV_OID
          The des-ede3-cbc-Env-OID encryption type.
DES3_CBC_MD5
          The des3-cbc-md5 encryption type.
DES3_CBC_SHA1
          The des3-cbc-sha1 encryption type.
DES3_CBC_SHA1_KD
          The des3-cbc-sha1-kd encryption type.
DSAWITHSHA1_CMSOID
          The dsaWithSHA1-CmsOID encryption type.
MD5WITHRSAENCRYPTION_CMSOID
          The md5WithRSAEncryption-CmsOID encryption type.
NULL
          The "null" encryption type.
RC2CBC_ENVOID
          The rc2CBC-EnvOID encryption type.
RC4_HMAC
          The rc4-hmac encryption type.
RC4_HMAC_EXP
          The rc4-hmac-exp encryption type.
RC4_HMAC_OLD
          The c4-hmac-old encryption type.
RC4_HMAC_OLD_EXP
          The rc4-hmac-old-exp encryption type.
RC4_MD4
          The rc4-md4 encryption type.
RESERVED4
          The reserved (4) encryption type.
RESERVED6
          The reserved (6) encryption type.
RSAENCRYPTION_ENVOID
          The rsaEncryption-EnvOID encryption type.
RSAES_OAEP_ENV_OID
          The rsaES-OAEP-ENV-OID encryption type.
SHA1WITHRSAENCRYPTION_CMSOID
          The sha1WithRSAEncryption-CmsOID encryption type.
SUBKEY_KEYMATERIAL
          The subkey-keymaterial encryption type.
UNKNOWN
          The "unknown" encryption type.
 
Method Summary
static EncryptionType getByName(java.lang.String type)
          Get the EncryptionType given a String.
static java.util.Collection<EncryptionType> getEncryptionTypes()
          Get all the encryption types
 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()
           
static EncryptionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EncryptionType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant 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.


DSAWITHSHA1_CMSOID

public static final EncryptionType DSAWITHSHA1_CMSOID
The dsaWithSHA1-CmsOID encryption type.


MD5WITHRSAENCRYPTION_CMSOID

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


SHA1WITHRSAENCRYPTION_CMSOID

public static final EncryptionType SHA1WITHRSAENCRYPTION_CMSOID
The sha1WithRSAEncryption-CmsOID encryption type.


RC2CBC_ENVOID

public static final EncryptionType RC2CBC_ENVOID
The rc2CBC-EnvOID encryption type.


RSAENCRYPTION_ENVOID

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


RSAES_OAEP_ENV_OID

public static final EncryptionType RSAES_OAEP_ENV_OID
The rsaES-OAEP-ENV-OID encryption type.


DES_EDE3_CBC_ENV_OID

public static final EncryptionType DES_EDE3_CBC_ENV_OID
The des-ede3-cbc-Env-OID 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.

Method Detail

values

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

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

valueOf

public static EncryptionType 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

getEncryptionTypes

public static java.util.Collection<EncryptionType> getEncryptionTypes()
Get all the encryption types

Returns:
A set of encryption types.

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.

getByName

public static EncryptionType getByName(java.lang.String type)
Get the EncryptionType given a String.

Parameters:
type - The encryption string we want to find
Returns:
The found EncryptionType, or UNKNOWN

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<EncryptionType>
See Also:
Object.toString()


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