com.esri.core.io
Enum UserCredentials.AuthenticationType

java.lang.Object
  extended by java.lang.Enum<UserCredentials.AuthenticationType>
      extended by com.esri.core.io.UserCredentials.AuthenticationType
All Implemented Interfaces:
Serializable, Comparable<UserCredentials.AuthenticationType>
Enclosing class:
UserCredentials

public static enum UserCredentials.AuthenticationType
extends Enum<UserCredentials.AuthenticationType>

The supported authentication type.


Enum Constant Summary
HTTP
          The HTTP based security.
NONE
          No security needed for the communication.
TOKEN
          The Token based security;
 
Method Summary
static UserCredentials.AuthenticationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UserCredentials.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
compareTo, equals, 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 UserCredentials.AuthenticationType NONE
No security needed for the communication.


TOKEN

public static final UserCredentials.AuthenticationType TOKEN
The Token based security;


HTTP

public static final UserCredentials.AuthenticationType HTTP
The HTTP based security. It can be either the basic or the digest access authentication.

Method Detail

values

public static UserCredentials.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 (UserCredentials.AuthenticationType c : UserCredentials.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 UserCredentials.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 © 2012. All Rights Reserved.