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, wait
authenticate
public AbstractSecurityProvider(String name)
public final void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromprotected void doInitialise() throws InitialisationException
InitialisationException
public boolean supports(Class<?> aClass)
supports
in interface SecurityProvider
public SecurityContext createSecurityContext(Authentication authentication) throws UnknownAuthenticationTypeException
createSecurityContext
in interface SecurityProvider
UnknownAuthenticationTypeException
public String getName()
NamedObject
getName
in interface NamedObject
public void setName(String name)
NameableObject
setName
in interface NameableObject
name
- the name of the objectpublic SecurityContextFactory getSecurityContextFactory()
public void setSecurityContextFactory(SecurityContextFactory securityContextFactory)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.