public class RequestAuthenticatorImpl extends Object implements RequestAuthenticator
| Constructor and Description |
|---|
RequestAuthenticatorImpl(JwtValidator jwtValidator) |
| Modifier and Type | Method and Description |
|---|---|
Jwt |
authenticateRequest(String authorizationHeader)
Authenticates a request by validating the given authorizationHeader according to the conventions.
|
public RequestAuthenticatorImpl(JwtValidator jwtValidator)
public Jwt authenticateRequest(String authorizationHeader) throws AuthenticationFailedException
RequestAuthenticatorauthenticateRequest in interface RequestAuthenticatorauthorizationHeader - the value of the 'Authorization' header of the request to validate. This 'Authorization' header
should contain a JWT with the necessary authentication informationAuthenticationFailedException - if there is a problem validating the token in the header. May be an
instance of PermanentAuthenticationFailureException (eg. for an incorrect
signature, or if the claims fail to pass the mandatory validations), or an
instance of TransientAuthenticationFailedException (when if there is a
temporary problem validating the token in the header, eg. a failure to
retrieve the required public key)Copyright © 2017 Atlassian. All rights reserved.