Package com.atlassian.applinks.api.auth
Class Anonymous
java.lang.Object
com.atlassian.applinks.api.auth.Anonymous
- All Implemented Interfaces:
AuthenticationProvider
This provider performs no authentication. It provides a convenience method for creating anonymous requests without
having to catch
CredentialsRequiredException as it is never thrown for unauthenticated requests.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.sal.api.net.RequestcreateAnonymousRequest(ApplicationLink link, com.atlassian.sal.api.net.Request.MethodType methodType, String url) This is a convenience method for creating anonymous (unauthenticated) requests without having to catch theCredentialsRequiredExceptiondeclared on theApplicationLinkRequestFactoryinterface
-
Constructor Details
-
Anonymous
public Anonymous()
-
-
Method Details
-
createAnonymousRequest
public static com.atlassian.sal.api.net.Request createAnonymousRequest(ApplicationLink link, com.atlassian.sal.api.net.Request.MethodType methodType, String url) This is a convenience method for creating anonymous (unauthenticated) requests without having to catch theCredentialsRequiredExceptiondeclared on theApplicationLinkRequestFactoryinterface- Parameters:
link- theApplicationLinkthat is the target of the requestmethodType- The HTTP method typeurl- The url to request- Returns:
- the (unauthenticated) request object
- See Also:
-