com.atlassian.applinks.api.auth
Class Anonymous

java.lang.Object
  extended by 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

Constructor Summary
Anonymous()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Anonymous

public Anonymous()
Method Detail

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 request
methodType - The HTTP method type
url - 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.