Cumulus4j API
(1.2.0)

org.cumulus4j.crypto
Enum CipherEngineType

java.lang.Object
  extended by java.lang.Enum<CipherEngineType>
      extended by org.cumulus4j.crypto.CipherEngineType
All Implemented Interfaces:
Serializable, Comparable<CipherEngineType>

public enum CipherEngineType
extends Enum<CipherEngineType>

Type of a cipher engine (a raw encryption algorithm).

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Enum Constant Summary
asymmetricBlock
          Indicates an asymmetric block cipher (aka public key cryptography).
symmetricBlock
          Indicates a symmetric block cipher.
symmetricStream
          Indicates a symmetric stream cipher.
 
Method Summary
static CipherEngineType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CipherEngineType[] 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
 

Enum Constant Detail

symmetricBlock

public static final CipherEngineType symmetricBlock
Indicates a symmetric block cipher.


asymmetricBlock

public static final CipherEngineType asymmetricBlock
Indicates an asymmetric block cipher (aka public key cryptography).


symmetricStream

public static final CipherEngineType symmetricStream
Indicates a symmetric stream cipher.

Method Detail

values

public static CipherEngineType[] 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 (CipherEngineType c : CipherEngineType.values())
    System.out.println(c);

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

valueOf

public static CipherEngineType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.