public abstract class AbstractSecurityProvider extends AbstractComponent implements SecurityProvider, Initialisable
LOCATION_KEY, ROOT_CONTAINER_NAME_KEY
PHASE_NAME
ANNOTATIONS_PROPERTY_NAME
Constructor and Description |
---|
AbstractSecurityProvider(String name) |
Modifier and Type | Method and Description |
---|---|
SecurityContext |
createSecurityContext(Authentication authentication)
Creates the security context for this security provider
|
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)
Checks if the class of authentication is supported by this security provider
|
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
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.
In case that the Initialisable.initialise()
method execution fails then mule will call the Disposable.dispose()
method if
the class also implements Disposable
allowing the object to dispose any allocated resource during
Initialisable.initialise()
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownDisposable
protected void doInitialise() throws InitialisationException
InitialisationException
public boolean supports(Class<?> aClass)
SecurityProvider
supports
in interface SecurityProvider
aClass
- The class to verifypublic SecurityContext createSecurityContext(Authentication authentication) throws UnknownAuthenticationTypeException
SecurityProvider
createSecurityContext
in interface SecurityProvider
authentication
- The Authentication
objectSecurityContext
for this providerUnknownAuthenticationTypeException
- In case the authentication type is not known.SecurityProvider.createSecurityContext(Authentication)
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 © 2018. All rights reserved.