| Modifier and Type | Class and Description |
|---|---|
static class |
AsapValidator.AsapAnnotationWhitelistProviderWithConfigSupport |
static class |
AsapValidator.AsapWhitelistProvider |
static class |
AsapValidator.EnvironmentVariablesWhitelistProvider
Provides the whitelist from environment variables.
|
static class |
AsapValidator.Whitelist
Provides whitelisted values.
|
| Constructor and Description |
|---|
AsapValidator(Function<Asap,AsapValidator.Whitelist> whitelistProvider) |
| Modifier and Type | Method and Description |
|---|---|
static AsapValidator |
newAnnotationValidator() |
static AsapValidator |
newAnnotationWithConfigValidator(Set<String> authorizedSubjects,
Set<String> authorizedIssuers)
This validator gives preferential treatment to the subjects and issuers present in the Asap annotation.
|
static AsapValidator |
newEnvironmentVariablesValidator() |
void |
validate(Asap asap,
Jwt jwt)
Validates a jwt token.
|
public AsapValidator(Function<Asap,AsapValidator.Whitelist> whitelistProvider)
public static AsapValidator newAnnotationValidator()
public static AsapValidator newEnvironmentVariablesValidator()
public static AsapValidator newAnnotationWithConfigValidator(Set<String> authorizedSubjects, Set<String> authorizedIssuers)
authorizedSubjects - - Set of authorized subjectsauthorizedIssuers - - Set of authorized Issuerspublic void validate(Asap asap, Jwt jwt) throws AuthorizationFailedException
asap - The annotation instance on a method, class, or packagejwt - The jwt tokenAuthorizationFailedException - If the authorized subjects or issuers failsCopyright © 2017 Atlassian. All rights reserved.