public class

AuthenticationConfigurationManagerImpl

extends Object
implements AuthenticationConfigurationManager
java.lang.Object
   ↳ com.atlassian.applinks.core.auth.AuthenticationConfigurationManagerImpl

Summary

Public Constructors
AuthenticationConfigurationManagerImpl(ApplicationLinkService applicationLinkService, PropertyService propertyService, EventPublisher eventPublisher)
Public Methods
Map<StringString> getConfiguration(ApplicationId id, Class<? extends AuthenticationProvider> provider)
Returns the configuration previously stored for this application/auth pair, or null when no configuration was ever stored.
boolean isConfigured(ApplicationId id, Class<? extends AuthenticationProvider> provider)
void registerProvider(ApplicationId id, Class<? extends AuthenticationProvider> provider, Map<StringString> config)
Registers configuration for the specified authentication provider with the given application link.
void unregisterProvider(ApplicationId id, Class<? extends AuthenticationProvider> provider)
Removes the configuration for the specified applink/auth-provider combination.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager

Public Constructors

public AuthenticationConfigurationManagerImpl (ApplicationLinkService applicationLinkService, PropertyService propertyService, EventPublisher eventPublisher)

Public Methods

public Map<StringString> getConfiguration (ApplicationId id, Class<? extends AuthenticationProvider> provider)

Returns the configuration previously stored for this application/auth pair, or null when no configuration was ever stored.

Parameters
id the id of the application link for which to retrieve authentication information.
provider the type of a AppLinks authentication provider (e.g. BasicAuthenticationProvider)
Returns
  • the configuration previously stored for this application/auth pair, or null when no configuration was ever stored.

public boolean isConfigured (ApplicationId id, Class<? extends AuthenticationProvider> provider)

public void registerProvider (ApplicationId id, Class<? extends AuthenticationProvider> provider, Map<StringString> config)

Registers configuration for the specified authentication provider with the given application link.

If existing configuration for this applink/auth-provider combination already exists, it will be replaced by the new configuration.

Parameters
id the id of the application link for which to configure authentication information.
provider the type of a AppLinks authentication provider (e.g. BasicAuthenticationProvider)
config the configuration for outbound requests to the specified application with the given authentication provider. Must not be null. Keys do not need to be prefixed.

public void unregisterProvider (ApplicationId id, Class<? extends AuthenticationProvider> provider)

Removes the configuration for the specified applink/auth-provider combination. After this, isConfigured(com.atlassian.applinks.api.ApplicationId, Class) will return false. Does nothing if this applink/auth-provider was never registered.

Parameters
id the id of the application link for which to remove authentication information.
provider the type of a AppLinks authentication provider (e.g. BasicAuthenticationProvider)