org.fosstrak.epcis.utils
Enum AuthenticationType

java.lang.Object
  extended by java.lang.Enum<AuthenticationType>
      extended by org.fosstrak.epcis.utils.AuthenticationType
All Implemented Interfaces:
Serializable, Comparable<AuthenticationType>

public enum AuthenticationType
extends Enum<AuthenticationType>

Authentication methods supported by the query and capture clients.

Author:
Sean Wellington

Enum Constant Summary
BASIC
          Basic authentication as described in RFC 2617.
HTTPS_WITH_CLIENT_CERT
          HTTPS using an X.509 certificate to authenticate the client.
NONE
          No authentication.
 
Method Summary
static AuthenticationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AuthenticationType[] 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

NONE

public static final AuthenticationType NONE
No authentication.


BASIC

public static final AuthenticationType BASIC
Basic authentication as described in RFC 2617.


HTTPS_WITH_CLIENT_CERT

public static final AuthenticationType HTTPS_WITH_CLIENT_CERT
HTTPS using an X.509 certificate to authenticate the client.

Method Detail

values

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

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

valueOf

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


Copyright © 2010. All Rights Reserved.