public class UsernameIdentityValidator extends IdentityValidator
| Modifier and Type | Class and Description |
|---|---|
static class |
UsernameIdentityValidator.AuthenticationChallenge |
| Constructor and Description |
|---|
UsernameIdentityValidator(boolean allowAnonymous,
java.util.function.Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate) |
| Modifier and Type | Method and Description |
|---|---|
Object |
validateAnonymousToken(com.digitalpetri.opcua.stack.core.types.structured.AnonymousIdentityToken token,
com.digitalpetri.opcua.stack.core.types.structured.UserTokenPolicy tokenPolicy,
com.digitalpetri.opcua.stack.core.channel.SecureChannel channel,
Session session)
Validate an
AnonymousIdentityToken and return an identity Object that represents the user. |
Object |
validateUsernameToken(com.digitalpetri.opcua.stack.core.types.structured.UserNameIdentityToken token,
com.digitalpetri.opcua.stack.core.types.structured.UserTokenPolicy tokenPolicy,
com.digitalpetri.opcua.stack.core.channel.SecureChannel channel,
Session session)
Validate a
UserNameIdentityToken and return an identity Object that represents the user. |
decryptTokenData, validateIssuedIdentityToken, validateX509Tokenpublic UsernameIdentityValidator(boolean allowAnonymous,
java.util.function.Predicate<UsernameIdentityValidator.AuthenticationChallenge> predicate)
public Object validateAnonymousToken(com.digitalpetri.opcua.stack.core.types.structured.AnonymousIdentityToken token, com.digitalpetri.opcua.stack.core.types.structured.UserTokenPolicy tokenPolicy, com.digitalpetri.opcua.stack.core.channel.SecureChannel channel, Session session) throws com.digitalpetri.opcua.stack.core.UaException
IdentityValidatorAnonymousIdentityToken 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 IdentityValidatortoken - the AnonymousIdentityToken.tokenPolicy - the UserTokenPolicy specified by the policyId in token.channel - the SecureChannel the request is arriving on.session - the Session the request is arriving on.com.digitalpetri.opcua.stack.core.UaException - if the token is invalid, rejected, or user access is denied.public Object validateUsernameToken(com.digitalpetri.opcua.stack.core.types.structured.UserNameIdentityToken token, com.digitalpetri.opcua.stack.core.types.structured.UserTokenPolicy tokenPolicy, com.digitalpetri.opcua.stack.core.channel.SecureChannel channel, Session session) throws com.digitalpetri.opcua.stack.core.UaException
IdentityValidatorUserNameIdentityToken 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 IdentityValidatortoken - the UserNameIdentityToken.tokenPolicy - the UserTokenPolicy specified by the policyId in token.channel - the SecureChannel the request is arriving on.session - the Session the request is arriving on.com.digitalpetri.opcua.stack.core.UaException - if the token is invalid, rejected, or user access is denied.Copyright © 2015. All rights reserved.