public class TokenValidatorImpl extends AbstractTokenValidator
TokenValidator.Policy| Constructor and Description |
|---|
TokenValidatorImpl(AsapConfiguration config,
KeyProvider<PublicKey> publicKeyProvider,
JwtClaimsValidator jwtClaimsValidator) |
| Modifier and Type | Method and Description |
|---|---|
protected JwtValidator |
createJwtValidator(KeyProvider<PublicKey> publicKeyProvider,
JwtParser jwtParser,
JwtClaimsValidator jwtClaimsValidator,
Set<String> allowedAudiences)
Creates the validator that will enforce correctness of the token.
|
ValidationResult |
validate(Optional<String> authHeader)
Perform the validation.
|
acceptableAudienceValues, audience, authorizedIssuers, authorizedSubjects, impersonationAuthorizedIssuers, impersonationIssuer, issuer, policy, policy, subject, subjectImpersonation, subjectImpersonation, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaudience, impersonationIssuer, issuer, subjectpublic TokenValidatorImpl(AsapConfiguration config, KeyProvider<PublicKey> publicKeyProvider, JwtClaimsValidator jwtClaimsValidator)
public ValidationResult validate(Optional<String> authHeader)
TokenValidatorauthHeader - the contents of the Authorization header from the HTTP request, if any.authHeaderprotected JwtValidator createJwtValidator(KeyProvider<PublicKey> publicKeyProvider, JwtParser jwtParser, JwtClaimsValidator jwtClaimsValidator, Set<String> allowedAudiences)
publicKeyProvider - the source for resolving public keysjwtParser - a parser for deserializing the JWTjwtClaimsValidator - the validator for enforcing authorization claimsallowedAudiences - the audience values that the token is allowed to specify for authenticating with usCopyright © 2017 Atlassian. All rights reserved.