public interface ValidationResult
Authorization
header against a TokenValidator
.Modifier and Type | Interface and Description |
---|---|
static class |
ValidationResult.Decision
The overall decision as to whether or not the request has satisfied the validator's requirements.
|
Modifier and Type | Method and Description |
---|---|
ValidationResult.Decision |
decision()
The overall decision as to whether or not the
Authorization header has satisfied the
validator's requirements. |
Optional<Jwt> |
token()
The token, if any, that was used to authorize this request.
|
Optional<String> |
untrustedIssuer()
The issuer, if any, that provided a token to the request.
|
ValidationResult.Decision decision()
Authorization
header has satisfied the
validator's requirements.Optional<Jwt> token()
Note: The value will only be present when decision()
is ValidationResult.Decision.AUTHORIZED
.
Optional<String> untrustedIssuer()
WARNING: This is the issuer that the token claimed to be from, but since the token has been rejected, this information MUST NOT be trusted. It is provided for information / logging purposes, only.
Copyright © 2017 Atlassian. All rights reserved.