com.atlassian.applinks.api.auth
Class Anonymous
java.lang.Object
com.atlassian.applinks.api.auth.Anonymous
- All Implemented Interfaces:
- AuthenticationProvider
public final class Anonymous
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Anonymous
public Anonymous()
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 the
CredentialsRequiredException declared on the ApplicationLinkRequestFactory interface
- Parameters:
link - the ApplicationLink that is the target of the requestmethodType - The HTTP method typeurl - The url to request
- Returns:
- the (unauthenticated) request object
- See Also:
ApplicationLinkRequestFactory.createRequest(com.atlassian.sal.api.net.Request.MethodType, java.lang.String)
Copyright © 2015 Atlassian. All rights reserved.