|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthenticationConfigurationManager
Acts as a data store for authentication providers.
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getConfiguration(ApplicationId id,
java.lang.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,
java.lang.Class<? extends AuthenticationProvider> provider)
|
void |
registerProvider(ApplicationId id,
java.lang.Class<? extends AuthenticationProvider> provider,
java.util.Map<java.lang.String,java.lang.String> config)
Registers configuration for the specified authentication provider with the given application link. |
void |
unregisterProvider(ApplicationId id,
java.lang.Class<? extends AuthenticationProvider> provider)
Removes the configuration for the specified applink/auth-provider combination. |
Method Detail |
---|
boolean isConfigured(ApplicationId id, java.lang.Class<? extends AuthenticationProvider> provider)
id
- the id of the application link for which to
test authentication configuration.provider
- the type of a AppLinks authentication
provider (e.g. BasicAuthenticationProvider
)
true
if the specified authentication provider is
configured for use with the specified application link, false
otherwise.void registerProvider(ApplicationId id, java.lang.Class<? extends AuthenticationProvider> provider, java.util.Map<java.lang.String,java.lang.String> config)
If existing configuration for this applink/auth-provider combination already exists, it will be replaced by the new configuration.
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.void unregisterProvider(ApplicationId id, java.lang.Class<? extends AuthenticationProvider> provider)
isConfigured(com.atlassian.applinks.api.ApplicationId, Class)
will
return false
.
Does nothing if this applink/auth-provider was never registered.
id
- the id of the application link for which to
remove authentication information.provider
- the type of a AppLinks authentication
provider (e.g. BasicAuthenticationProvider
)java.util.Map<java.lang.String,java.lang.String> getConfiguration(ApplicationId id, java.lang.Class<? extends AuthenticationProvider> provider)
null
when no configuration was ever stored.
id
- the id of the application link for which to
retrieve authentication information.provider
- the type of a AppLinks authentication
provider (e.g. BasicAuthenticationProvider
)
null
when no configuration was ever stored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |