public interface RequestAuthenticator
| Modifier and Type | Method and Description |
|---|---|
Jwt |
authenticateRequest(String authorizationHeader)
Authenticates a request by validating the given authorizationHeader according to the conventions.
|
Jwt authenticateRequest(String authorizationHeader) throws AuthenticationFailedException
authorizationHeader - 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.