public class UsernameIdentityValidator extends AbstractIdentityValidator
| Modifier and Type | Class and Description |
|---|---|
static class |
UsernameIdentityValidator.AuthenticationChallenge |
| Constructor and Description |
|---|
UsernameIdentityValidator(boolean allowAnonymous,
Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate) |
| Modifier and Type | Method and Description |
|---|---|
Object |
validateAnonymousToken(ServerSecureChannel channel,
Session session,
AnonymousIdentityToken token,
UserTokenPolicy tokenPolicy,
SignatureData tokenSignature)
Validate an
AnonymousIdentityToken and return an identity Object that represents the user. |
Object |
validateUsernameToken(ServerSecureChannel channel,
Session session,
UserNameIdentityToken token,
UserTokenPolicy tokenPolicy,
SignatureData tokenSignature)
Validate a
UserNameIdentityToken and return an identity Object that represents the user. |
decryptTokenData, validateIdentityToken, validateIssuedIdentityToken, validateX509Tokenpublic UsernameIdentityValidator(boolean allowAnonymous,
Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate)
public Object validateAnonymousToken(ServerSecureChannel channel, Session session, AnonymousIdentityToken token, UserTokenPolicy tokenPolicy, SignatureData tokenSignature) throws UaException
AbstractIdentityValidatorAnonymousIdentityToken and return an identity Object that represents the user.
This Object should implement equality in such a way that a subsequent identity validation for the same user yields a comparable Object.
validateAnonymousToken in class AbstractIdentityValidatorchannel - the ServerSecureChannel the request is arriving on.session - the Session the request is arriving on.token - the AnonymousIdentityToken.tokenPolicy - the UserTokenPolicy specified by the policyId in token.tokenSignature - the SignatureData sent in the ActivateSessionRequest.UaException - if the token is invalid, rejected, or user access is denied.public Object validateUsernameToken(ServerSecureChannel channel, Session session, UserNameIdentityToken token, UserTokenPolicy tokenPolicy, SignatureData tokenSignature) throws UaException
AbstractIdentityValidatorUserNameIdentityToken and return an identity Object that represents the user.
This Object should implement equality in such a way that a subsequent identity validation for the same user yields a comparable Object.
validateUsernameToken in class AbstractIdentityValidatorchannel - the ServerSecureChannel the request is arriving on.session - the Session the request is arriving on.token - the UserNameIdentityToken.tokenPolicy - the UserTokenPolicy specified by the policyId in token.tokenSignature - the SignatureData sent in the ActivateSessionRequest.UaException - if the token is invalid, rejected, or user access is denied.Copyright © 2018. All rights reserved.