|
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.EntityAuthenticationFactory
com.netflix.msl.entityauth.RsaAuthenticationFactory
public class RsaAuthenticationFactory
RSA asymmetric keys entity authentication factory.
Field Summary | |
---|---|
(package private) AuthenticationUtils |
authutils
Authentication utilities. |
private RsaStore |
store
RSA key store. |
Constructor Summary | |
---|---|
RsaAuthenticationFactory(RsaStore store,
AuthenticationUtils authutils)
Construct a new RSA asymmetric keys 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 |
---|
private final RsaStore store
final AuthenticationUtils authutils
Constructor Detail |
---|
public RsaAuthenticationFactory(RsaStore store, AuthenticationUtils authutils)
store
- RSA public key store.authutils
- authentication utilities.Method Detail |
---|
public EntityAuthenticationData createData(MslContext ctx, JSONObject entityAuthJO) throws MslEncodingException, MslCryptoException
EntityAuthenticationFactory
createData
in class EntityAuthenticationFactory
ctx
- MSL context.entityAuthJO
- the JSON object.
MslEncodingException
- if there is an error parsing the JSON.
MslCryptoException
- if there is an error with the entity
authentication data cryptography.public ICryptoContext getCryptoContext(MslContext ctx, EntityAuthenticationData authdata) throws MslEntityAuthException
EntityAuthenticationFactory
getCryptoContext
in class EntityAuthenticationFactory
ctx
- MSL context.authdata
- the authentication data.
MslEntityAuthException
- if there is an error with the entity
authentication data.
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |