org.avis.client
Enum SecureMode

java.lang.Object
  extended by java.lang.Enum<SecureMode>
      extended by org.avis.client.SecureMode
All Implemented Interfaces:
Serializable, Comparable<SecureMode>

public enum SecureMode
extends Enum<SecureMode>

Specifies the secure delivery mode for notifications.

Author:
Matthew Phillips

Enum Constant Summary
ALLOW_INSECURE_DELIVERY
          Allow clients without matching keys to receive the message.
REQUIRE_SECURE_DELIVERY
          Require secure key match between notification and subscription before delivering to a client.
 
Method Summary
static SecureMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SecureMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUIRE_SECURE_DELIVERY

public static final SecureMode REQUIRE_SECURE_DELIVERY
Require secure key match between notification and subscription before delivering to a client.


ALLOW_INSECURE_DELIVERY

public static final SecureMode ALLOW_INSECURE_DELIVERY
Allow clients without matching keys to receive the message. Those with matching keys will still receive securely.

Method Detail

values

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

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

valueOf

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


Copyright © 2008 Matthew Phillips. All Rights Reserved.