public abstract class AbstractSecurityProvider extends Object implements SecurityProvider
PHASE_NAME| Constructor and Description |
|---|
AbstractSecurityProvider(String name) |
| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
createSecurityContext(Authentication authentication) |
protected void |
doInitialise() |
String |
getName()
Gets the name of the object
|
SecurityContextFactory |
getSecurityContextFactory() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setName(String name)
Sets the name of the object
|
void |
setSecurityContextFactory(SecurityContextFactory securityContextFactory) |
boolean |
supports(Class<?> aClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticatepublic AbstractSecurityProvider(String name)
public final void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromprotected void doInitialise()
throws InitialisationException
InitialisationExceptionpublic boolean supports(Class<?> aClass)
supports in interface SecurityProviderpublic SecurityContext createSecurityContext(Authentication authentication) throws UnknownAuthenticationTypeException
createSecurityContext in interface SecurityProviderUnknownAuthenticationTypeExceptionpublic String getName()
NamedObjectgetName in interface NamedObjectpublic void setName(String name)
NameableObjectsetName in interface NameableObjectname - the name of the objectpublic SecurityContextFactory getSecurityContextFactory()
public void setSecurityContextFactory(SecurityContextFactory securityContextFactory)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.