Message Security Layer (MSL)

com.netflix.msl.entityauth
Class UnauthenticatedAuthenticationData

java.lang.Object
  extended by com.netflix.msl.entityauth.EntityAuthenticationData
      extended by com.netflix.msl.entityauth.UnauthenticatedAuthenticationData

public class UnauthenticatedAuthenticationData
extends EntityAuthenticationData

Unauthenticated entity authentication data. This form of authentication is used by entities that cannot provide any form of entity authentication.

Unauthenticated entity authentication data is represented as unauthenticatedauthdata = { "#mandatory" : [ "identity" ], "identity" : "string" } where:


Field Summary
private  String identity
          Entity identity.
private static String KEY_IDENTITY
          JSON key entity identity.
 
Constructor Summary
UnauthenticatedAuthenticationData(JSONObject unauthenticatedAuthJO)
          Construct a new unauthenticated entity authentication data instance from the provided JSON object.
UnauthenticatedAuthenticationData(String identity)
          Construct a new unauthenticated entity authentication data instance from the specified entity identity.
 
Method Summary
 boolean equals(Object obj)
           
 JSONObject getAuthData()
           
 String getIdentity()
           
 int hashCode()
           
 
Methods inherited from class com.netflix.msl.entityauth.EntityAuthenticationData
create, getScheme, toJSONString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_IDENTITY

private static final String KEY_IDENTITY
JSON key entity identity.

See Also:
Constant Field Values

identity

private final String identity
Entity identity.

Constructor Detail

UnauthenticatedAuthenticationData

public UnauthenticatedAuthenticationData(String identity)
Construct a new unauthenticated entity authentication data instance from the specified entity identity.

Parameters:
identity - the entity identity.

UnauthenticatedAuthenticationData

UnauthenticatedAuthenticationData(JSONObject unauthenticatedAuthJO)
                            throws MslEncodingException
Construct a new unauthenticated entity authentication data instance from the provided JSON object.

Parameters:
unauthenticatedAuthJO - the authentication data JSON object.
Throws:
MslEncodingException - if there is an error parsing the JSON representation.
Method Detail

getIdentity

public String getIdentity()
Specified by:
getIdentity in class EntityAuthenticationData
Returns:
the entity identity.

getAuthData

public JSONObject getAuthData()
                       throws MslEncodingException
Specified by:
getAuthData in class EntityAuthenticationData
Returns:
the authentication data JSON representation.
Throws:
MslEncodingException - if there was an error constructing the JSON representation.

equals

public boolean equals(Object obj)
Overrides:
equals in class EntityAuthenticationData

hashCode

public int hashCode()
Overrides:
hashCode in class EntityAuthenticationData

Message Security Layer (MSL)

Copyright © 2014 Netflix, Inc. All Rights Reserved.