public abstract class AbstractSecurityProvider extends Object implements SecurityProvider
| Constructor and Description |
|---|
AbstractSecurityProvider(String name) |
| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
createSecurityContext(org.mule.runtime.api.security.Authentication authentication)
Creates the security context for this security provider
|
protected void |
doInitialise() |
String |
getName() |
SecurityContextFactory |
getSecurityContextFactory() |
void |
initialise() |
void |
setName(String name) |
void |
setSecurityContextFactory(SecurityContextFactory securityContextFactory) |
boolean |
supports(Class<?> aClass)
Checks if the class of authentication is supported by this security provider
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticatepublic AbstractSecurityProvider(String name)
public final void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
org.mule.runtime.api.lifecycle.InitialisationExceptionpublic boolean supports(Class<?> aClass)
SecurityProvidersupports in interface SecurityProvideraClass - The class to verifypublic SecurityContext createSecurityContext(org.mule.runtime.api.security.Authentication authentication) throws org.mule.runtime.api.security.UnknownAuthenticationTypeException
SecurityProvidercreateSecurityContext in interface SecurityProviderauthentication - The Authentication objectSecurityContext for this providerorg.mule.runtime.api.security.UnknownAuthenticationTypeException - In case the authentication type is not known.SecurityProvider.createSecurityContext(Authentication)public String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic void setName(String name)
setName in interface org.mule.runtime.api.meta.NameableObjectpublic SecurityContextFactory getSecurityContextFactory()
public void setSecurityContextFactory(SecurityContextFactory securityContextFactory)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.