Message Security Layer (MSL)

com.netflix.msl.entityauth
Class UnauthenticatedAuthenticationFactory

java.lang.Object
  extended by com.netflix.msl.entityauth.EntityAuthenticationFactory
      extended by com.netflix.msl.entityauth.UnauthenticatedAuthenticationFactory

public class UnauthenticatedAuthenticationFactory
extends EntityAuthenticationFactory

Unauthenticated entity authentication factory.


Field Summary
(package private)  AuthenticationUtils authutils
          Authentication utilities.
 
Constructor Summary
UnauthenticatedAuthenticationFactory(AuthenticationUtils authutils)
          Construct a new unauthenticated authentication factory instance.
 
Method Summary
 EntityAuthenticationData createData(MslContext ctx, JSONObject entityAuthJO)
          Construct a new entity authentication data instance from the provided JSON.
 ICryptoContext getCryptoContext(MslContext ctx, EntityAuthenticationData authdata)
          Create a crypto context that can be used to encrypt/decrypt and authenticate data from the entity.
 
Methods inherited from class com.netflix.msl.entityauth.EntityAuthenticationFactory
getScheme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authutils

final AuthenticationUtils authutils
Authentication utilities.

Constructor Detail

UnauthenticatedAuthenticationFactory

public UnauthenticatedAuthenticationFactory(AuthenticationUtils authutils)
Construct a new unauthenticated authentication factory instance.

Parameters:
authutils - authentication utilities.
Method Detail

createData

public EntityAuthenticationData createData(MslContext ctx,
                                           JSONObject entityAuthJO)
                                    throws MslEncodingException
Description copied from class: EntityAuthenticationFactory
Construct a new entity authentication data instance from the provided JSON.

Specified by:
createData in class EntityAuthenticationFactory
Parameters:
ctx - MSL context.
entityAuthJO - the JSON object.
Returns:
the entity authentication data.
Throws:
MslEncodingException - if there is an error parsing the JSON.

getCryptoContext

public ICryptoContext getCryptoContext(MslContext ctx,
                                       EntityAuthenticationData authdata)
                                throws MslEntityAuthException
Description copied from class: EntityAuthenticationFactory
Create a crypto context that can be used to encrypt/decrypt and authenticate data from the entity. The implementation of this function must, by necessity, authenticate the entity authentication data.

Specified by:
getCryptoContext in class EntityAuthenticationFactory
Parameters:
ctx - MSL context.
authdata - the authentication data.
Returns:
the entity crypto context.
Throws:
MslEntityAuthException - if there is an error with the entity authentication data.

Message Security Layer (MSL)

Copyright © 2014 Netflix, Inc. All Rights Reserved.