public class WhitelistJerseyRequestAuthorizer extends Object implements JerseyRequestAuthorizer
| Constructor and Description |
|---|
WhitelistJerseyRequestAuthorizer(Iterable<String> authorizedSubjects,
Iterable<String> authorizedIssuers) |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(Jwt authenticJwt,
com.sun.jersey.api.core.HttpRequestContext requestContext)
Tries to authorize an authentic JWT token to perform a request.
|
public void authorize(Jwt authenticJwt, com.sun.jersey.api.core.HttpRequestContext requestContext) throws AuthorizationFailedException
JerseyRequestAuthorizerauthorize in interface JerseyRequestAuthorizerauthenticJwt - an authentic JWT tokenrequestContext - the request that is to be authorisedAuthorizationFailedException - if the token is not authorized for this requestCopyright © 2017 Atlassian. All rights reserved.