Class OAuthRequestUtils
- java.lang.Object
 - 
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.OAuthRequestUtils
 
 
- 
public class OAuthRequestUtils extends Object
Utility class for extracting information from OAuth requests. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringEXCLUSION_PATH 
- 
Constructor Summary
Constructors Constructor Description OAuthRequestUtils() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOAuthAccessAttempt(javax.servlet.http.HttpServletRequest request)Checks if the request is any form of OAuth request, either 2LO or 3LO.booleanisOauthTokenRequest(javax.servlet.http.HttpServletRequest request)The request path is accessing one of the token endpoints 
 - 
 
- 
- 
Field Detail
- 
EXCLUSION_PATH
public static final String EXCLUSION_PATH
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
isOAuthAccessAttempt
public boolean isOAuthAccessAttempt(javax.servlet.http.HttpServletRequest request)
Checks if the request is any form of OAuth request, either 2LO or 3LO. It is done by checking the request parameters.- Parameters:
 request- the request object.- Returns:
 - true if the request is an OAuth request.
 
 
- 
isOauthTokenRequest
public boolean isOauthTokenRequest(javax.servlet.http.HttpServletRequest request)
The request path is accessing one of the token endpoints- Parameters:
 request- the request object- Returns:
 - true if the request is for an OAuth token.
 
 
 - 
 
 -