|
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.userauth.UserAuthenticationFactory
com.netflix.msl.userauth.EmailPasswordAuthenticationFactory
public class EmailPasswordAuthenticationFactory
Email/password-based user authentication factory.
Field Summary | |
---|---|
private AuthenticationUtils |
authutils
Authentication utilities. |
private EmailPasswordStore |
store
Email/password store. |
Constructor Summary | |
---|---|
EmailPasswordAuthenticationFactory(EmailPasswordStore store,
AuthenticationUtils authutils)
Construct a new email/password-based user authentication factory. |
Method Summary | |
---|---|
MslUser |
authenticate(MslContext ctx,
String identity,
UserAuthenticationData data,
UserIdToken userIdToken)
Authenticate the user using the provided authentication data. |
UserAuthenticationData |
createData(MslContext ctx,
MasterToken masterToken,
JSONObject userAuthJO)
Construct a new user authentication data instance from the provided JSON. |
Methods inherited from class com.netflix.msl.userauth.UserAuthenticationFactory |
---|
getScheme |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final EmailPasswordStore store
private final AuthenticationUtils authutils
Constructor Detail |
---|
public EmailPasswordAuthenticationFactory(EmailPasswordStore store, AuthenticationUtils authutils)
store
- email/password store.authutils
- authentication utilities.Method Detail |
---|
public UserAuthenticationData createData(MslContext ctx, MasterToken masterToken, JSONObject userAuthJO) throws MslEncodingException
UserAuthenticationFactory
Construct a new user authentication data instance from the provided JSON.
A master token may be required for certain user authentication schemes.
createData
in class UserAuthenticationFactory
ctx
- MSL context.masterToken
- the entity master token. May be null
.userAuthJO
- the JSON object.
MslEncodingException
- if there is an error parsing the JSON.public MslUser authenticate(MslContext ctx, String identity, UserAuthenticationData data, UserIdToken userIdToken) throws MslUserAuthException
UserAuthenticationFactory
Authenticate the user using the provided authentication data.
If a user ID token is provided then also validate the authenticated user against the provided user ID token. This is typically a check to ensure the user identities are equal but not always. The returned user must be the user identified by the user ID token.
authenticate
in class UserAuthenticationFactory
ctx
- MSL context.identity
- the entity identity.data
- user authentication data.userIdToken
- user ID token. May be null
.
MslUserAuthException
- if there is an error authenticating the
user or if the user authentication data and user ID token
identities do not match.
|
Message Security Layer (MSL) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |