org.mule.security
Class AbstractSecurityProvider
java.lang.Object
org.mule.security.AbstractSecurityProvider
- All Implemented Interfaces:
- Initialisable, NamedObject, SecurityProvider
- Direct Known Subclasses:
- AcegiProviderAdapter, JaasSimpleAuthenticationProvider, PGPSecurityProvider, SpringProviderAdapter, TestSingleUserSecurityProvider
public abstract class AbstractSecurityProvider
- extends Object
- implements SecurityProvider, NamedObject
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSecurityProvider
public AbstractSecurityProvider(String name)
initialise
public final void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
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.
- Specified by:
initialise in interface Initialisable
- Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from
doInitialise
protected void doInitialise()
throws InitialisationException
- Throws:
InitialisationException
supports
public boolean supports(Class aClass)
- Specified by:
supports in interface SecurityProvider
createSecurityContext
public SecurityContext createSecurityContext(Authentication authentication)
throws UnknownAuthenticationTypeException
- Specified by:
createSecurityContext in interface SecurityProvider
- Throws:
UnknownAuthenticationTypeException
getName
public String getName()
- Description copied from interface:
NamedObject
- Gets the name of the object
- Specified by:
getName in interface NamedObject- Specified by:
getName in interface SecurityProvider
- Returns:
- the name of the object
setName
public void setName(String name)
- Description copied from interface:
NamedObject
- Sets the name of the object
- Specified by:
setName in interface NamedObject- Specified by:
setName in interface SecurityProvider
- Parameters:
name - the name of the object
getSecurityContextFactory
public SecurityContextFactory getSecurityContextFactory()
setSecurityContextFactory
public void setSecurityContextFactory(SecurityContextFactory securityContextFactory)
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.