|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.msl.entityauth.EntityAuthenticationData
public abstract class EntityAuthenticationData
The entity authentication data provides proof of entity identity.
Specific entity authentication mechanisms should define their own entity authentication data types.
Entity authentication data is represented as
entityauthdata = {
"#mandatory" : [ "scheme", "authdata" ],
"scheme" : "string",
"authdata" : object
}
where:
scheme
is the entity authentication schemeauthdata
is the scheme-specific entity authentication data
Field Summary | |
---|---|
private static String |
KEY_AUTHDATA
JSON key entity authentication data. |
private static String |
KEY_SCHEME
JSON key entity authentication scheme. |
private EntityAuthenticationScheme |
scheme
Entity authentication scheme. |
Constructor Summary | |
---|---|
protected |
EntityAuthenticationData(EntityAuthenticationScheme scheme)
Create a new entity authentication data object with the specified entity authentication scheme. |
Method Summary | |
---|---|
static EntityAuthenticationData |
create(MslContext ctx,
JSONObject entityAuthJO)
Construct a new entity authentication data instance of the correct type from the provided JSON object. |
boolean |
equals(Object obj)
|
abstract JSONObject |
getAuthData()
|
abstract String |
getIdentity()
|
EntityAuthenticationScheme |
getScheme()
|
int |
hashCode()
|
String |
toJSONString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String KEY_SCHEME
private static final String KEY_AUTHDATA
private final EntityAuthenticationScheme scheme
Constructor Detail |
---|
protected EntityAuthenticationData(EntityAuthenticationScheme scheme)
scheme
- the entity authentication scheme.Method Detail |
---|
public static EntityAuthenticationData create(MslContext ctx, JSONObject entityAuthJO) throws MslEntityAuthException, MslEncodingException, MslCryptoException
ctx
- MSL context.entityAuthJO
- the JSON object.
MslEntityAuthException
- if unable to create the entity
authentication data.
MslEncodingException
- if there is an error parsing the entity
authentication data.
MslCryptoException
- if there is an error creating the entity
authentication data crypto.public EntityAuthenticationScheme getScheme()
public abstract String getIdentity() throws MslCryptoException
MslCryptoException
- if there is a crypto error accessing the
entity identity.public abstract JSONObject getAuthData() throws MslEncodingException
MslEncodingException
- if there was an error constructing the
JSON representation.public final String toJSONString()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |