public interface AsapService
| Modifier and Type | Method and Description |
|---|---|
AuthorizationBuilder |
authorizationBuilder()
Creates a builder for generating an HTTP
Authorization header value containing an ASAP token. |
TokenValidator |
tokenValidator()
Create a validator for verifying the contents of an HTTP
Authorization header value. |
default ValidationResult |
validate(AsapAuth annotation,
Optional<String> authHeader)
Creates a validator and populates it with the provided annotation's settings, then applies it
to the given
Authorization header value. |
AuthorizationBuilder authorizationBuilder()
Authorization header value containing an ASAP token.TokenValidator tokenValidator()
Authorization header value.default ValidationResult validate(AsapAuth annotation, Optional<String> authHeader)
Authorization header value.
This convenience method creates a token validator, applies all of
the settings from the annotation to it, then calls validate
using the supplied authorization header.
annotation - an @AsapAuth annotation with the settings to applyauthHeader - the Authorization header that was provided for the requestauthHeader against the settings specified by annotationCopyright © 2017 Atlassian. All rights reserved.