org.openliberty.wsc
Enum AuthenticationService.WSCExceptionType

java.lang.Object
  extended by java.lang.Enum<AuthenticationService.WSCExceptionType>
      extended by org.openliberty.wsc.AuthenticationService.WSCExceptionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AuthenticationService.WSCExceptionType>
Enclosing class:
AuthenticationService

public static enum AuthenticationService.WSCExceptionType
extends java.lang.Enum<AuthenticationService.WSCExceptionType>

An enumeration that describes the various exceptions that the Authentication Service Client may throw.

Author:
asa

Enum Constant Summary
AUTHENTICATION_SERVICE_FAILURE
          An Auth Service Failure Exception is thrown when the Authentication Service does not return required elements in its SOAP response
AUTHENTICATION_SERVICE_INVOCATION_FAILURE
          This is a general failure exception thrown when the WSFMessage.invoke(sign) fails.
CONTINUE_NOT_SUPPORTED_IN_AUTHENTICATE_CONTEXT
          While authentication, continue is currently not supported.
CRAM_MD5_CHALLENGE_IS_EMPTY
          The server returned a CRAM-MD5 response with no challenge in the <Data> element in the SASLResponse
ILLEGAL_ARGUMENTS
           
NO_DATA_IN_SASL_RESPONSE
          This exception is thrown when it is expected that there will be a <Data> element in the SASLResponse
UNEXPECTED_SERVER_AUTH_MECHANISM
          The server returned a serverMechanism in the SASLResponse that does not match the one requested
UNEXPECTED_STATUS_CODE
          When the service client receives a status code in a context where it is not expected, this Exception will be thrown
UNRECOGNIZED_RESPONSE
          This exception is thrown when the Authentication Service response for a SASLRequest did not contain a SASLResponse
 
Field Summary
(package private)  java.lang.String shortDesc
           
 
Method Summary
static AuthenticationService.WSCExceptionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AuthenticationService.WSCExceptionType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ILLEGAL_ARGUMENTS

public static final AuthenticationService.WSCExceptionType ILLEGAL_ARGUMENTS

UNEXPECTED_SERVER_AUTH_MECHANISM

public static final AuthenticationService.WSCExceptionType UNEXPECTED_SERVER_AUTH_MECHANISM
The server returned a serverMechanism in the SASLResponse that does not match the one requested


CRAM_MD5_CHALLENGE_IS_EMPTY

public static final AuthenticationService.WSCExceptionType CRAM_MD5_CHALLENGE_IS_EMPTY
The server returned a CRAM-MD5 response with no challenge in the <Data> element in the SASLResponse


NO_DATA_IN_SASL_RESPONSE

public static final AuthenticationService.WSCExceptionType NO_DATA_IN_SASL_RESPONSE
This exception is thrown when it is expected that there will be a <Data> element in the SASLResponse


UNRECOGNIZED_RESPONSE

public static final AuthenticationService.WSCExceptionType UNRECOGNIZED_RESPONSE
This exception is thrown when the Authentication Service response for a SASLRequest did not contain a SASLResponse


UNEXPECTED_STATUS_CODE

public static final AuthenticationService.WSCExceptionType UNEXPECTED_STATUS_CODE
When the service client receives a status code in a context where it is not expected, this Exception will be thrown


AUTHENTICATION_SERVICE_INVOCATION_FAILURE

public static final AuthenticationService.WSCExceptionType AUTHENTICATION_SERVICE_INVOCATION_FAILURE
This is a general failure exception thrown when the WSFMessage.invoke(sign) fails.


AUTHENTICATION_SERVICE_FAILURE

public static final AuthenticationService.WSCExceptionType AUTHENTICATION_SERVICE_FAILURE
An Auth Service Failure Exception is thrown when the Authentication Service does not return required elements in its SOAP response


CONTINUE_NOT_SUPPORTED_IN_AUTHENTICATE_CONTEXT

public static final AuthenticationService.WSCExceptionType CONTINUE_NOT_SUPPORTED_IN_AUTHENTICATE_CONTEXT
While authentication, continue is currently not supported. Continue is supported when making the initial query for matching security mechanisms.

Field Detail

shortDesc

java.lang.String shortDesc
Method Detail

values

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

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

valueOf

public static AuthenticationService.WSCExceptionType 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