externalInformationPort
Enum Information

java.lang.Object
  extended by java.lang.Enum<Information>
      extended by externalInformationPort.Information
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Information>

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

Enumeration used to identify different types of information, that can be received and/or provided using an ExternalInformationPort component.

Author:
Karl-Peter Fuchs
See Also:
Information

Enum Constant Summary
INTER_MIX_IV
          Initialization vector used to encrypt data between this mix and its predecessor.
INTER_MIX_KEY
          Key used to encrypt data between this mix and its predecessor.
NEXT_MIX_ADDRESS
          The next mix' address.
NEXT_MIX_INFO_PORT
          Port number the next mix' InformationProvider runs on.
NOT_AVAILABLE
          Indicates that the requested Information is not available.
PUBLIC_KEY
          This mix' public key.
 
Field Summary
private  int identifier
          Identifieing number for this Information (automatically generated).
 
Method Summary
 int getIdentifier()
          Returns this Information's identifieing number.
static Information valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Information[] 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

PUBLIC_KEY

public static final Information PUBLIC_KEY
This mix' public key.


INTER_MIX_KEY

public static final Information INTER_MIX_KEY
Key used to encrypt data between this mix and its predecessor.


INTER_MIX_IV

public static final Information INTER_MIX_IV
Initialization vector used to encrypt data between this mix and its predecessor.


NEXT_MIX_ADDRESS

public static final Information NEXT_MIX_ADDRESS
The next mix' address.


NEXT_MIX_INFO_PORT

public static final Information NEXT_MIX_INFO_PORT
Port number the next mix' InformationProvider runs on.


NOT_AVAILABLE

public static final Information NOT_AVAILABLE
Indicates that the requested Information is not available.

Field Detail

identifier

private int identifier
Identifieing number for this Information (automatically generated).

Method Detail

values

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

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

valueOf

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

getIdentifier

public int getIdentifier()
Returns this Information's identifieing number.

Returns:
This Information's identifieing number.