Interface AccessTokenAuthenticationHandler
public interface AccessTokenAuthenticationHandler
Provides operations to authenticate with Atlassian products through access tokens
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String bearerToken) Authenticates a HTTP request using the access token defined in the Authorization header.
-
Method Details
-
authenticate
AuthenticationResult authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String bearerToken) throws AccessFailedException Authenticates a HTTP request using the access token defined in the Authorization header. See https://tools.ietf.org/html/rfc6749#section-7- Parameters:
request- the requestresponse- the responsebearerToken- the bearer token provided with the request- Throws:
UnrecognisedTokenException- when the token is unrecognisedExpiredTokenException- when the token has expiredUnrecognisedUserKeyException- when the user key associated with the token is unrecognisedAccessFailedException
-