public class WhitelistRequestAuthorizationFilter extends AbstractRequestAuthorizationFilter
AbstractRequestAuthorizationFilter by using two whitelists of authorized subjects and
issuers.| Constructor and Description |
|---|
WhitelistRequestAuthorizationFilter(Set<String> authorizedSubjects)
Deprecated.
This constructor has been deprecated because the behaviour is misleading. Please use
IssuerAndSubjectAwareRequestAuthorizationFilter.issuers(Set) instead. |
WhitelistRequestAuthorizationFilter(Set<String> authorizedSubjects,
Set<String> authorizedIssuers)
Constructs an authorization filter that only accepts tokens where the effective subject and the issuer
belong to the respective whitelists.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAuthorized(javax.servlet.http.HttpServletRequest request,
Jwt jwt)
Decides if the token is authorized for the request.
|
destroy, doFilter, init, onAuthorizationFailure, onAuthorizationSuccess, onTokenNotFoundpublic WhitelistRequestAuthorizationFilter(Set<String> authorizedSubjects, Set<String> authorizedIssuers)
authorizedSubjects - effective subjects must belong to this set to be authorizedauthorizedIssuers - issuers must belong to this set to be authorized@Deprecated public WhitelistRequestAuthorizationFilter(Set<String> authorizedSubjects)
IssuerAndSubjectAwareRequestAuthorizationFilter.issuers(Set) instead.There is no guarantee that the subject and the issuer are the same, just that they are both in the set. If you
want to allow only self-signed JWTs from a known set of issuers, consider using
IssuerAndSubjectAwareRequestAuthorizationFilter.issuers(Set) instead.
authorizedSubjects - issuers and effective subjects must belong to this set to be authorizedprotected boolean isAuthorized(javax.servlet.http.HttpServletRequest request,
Jwt jwt)
AbstractRequestAuthorizationFilterisAuthorized in class AbstractRequestAuthorizationFilterrequest - HTTP request receivedjwt - Authentic and valid JWT token extracted from the requestCopyright © 2017 Atlassian. All rights reserved.