Message Security Layer (MSL)

com.netflix.msl.util
Enum MslContext.ReauthCode

java.lang.Object
  extended by java.lang.Enum<MslContext.ReauthCode>
      extended by com.netflix.msl.util.MslContext.ReauthCode
All Implemented Interfaces:
Serializable, Comparable<MslContext.ReauthCode>
Enclosing interface:
MslContext

public static enum MslContext.ReauthCode
extends Enum<MslContext.ReauthCode>

Re-authentication reason codes.


Enum Constant Summary
ENTITY_REAUTH
          The master token was rejected as bad or invalid.
ENTITYDATA_REAUTH
          The entity authentication data failed to authenticate the entity.
 
Field Summary
private  MslConstants.ResponseCode code
          The response code value.
 
Method Summary
 int intValue()
           
static MslContext.ReauthCode valueOf(MslConstants.ResponseCode code)
           
static MslContext.ReauthCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MslContext.ReauthCode[] 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

ENTITY_REAUTH

public static final MslContext.ReauthCode ENTITY_REAUTH
The master token was rejected as bad or invalid.


ENTITYDATA_REAUTH

public static final MslContext.ReauthCode ENTITYDATA_REAUTH
The entity authentication data failed to authenticate the entity.

Field Detail

code

private final MslConstants.ResponseCode code
The response code value.

Method Detail

values

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

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

valueOf

public static MslContext.ReauthCode 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

valueOf

public static MslContext.ReauthCode valueOf(MslConstants.ResponseCode code)
Returns:
the re-authentication code corresponding to the response code.
Throws:
IllegalArgumentException - if the response code does not map onto a re-authentication code.

intValue

public int intValue()
Returns:
the integer value of the response code.

Message Security Layer (MSL)

Copyright © 2014 Netflix, Inc. All Rights Reserved.