public interface SecurityProvider
extends org.mule.runtime.api.meta.NameableObject
SecurityProvider is a target security provider that actually does the work of authenticating credentials and populating
the Authentication object.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.security.Authentication |
authenticate(org.mule.runtime.api.security.Authentication authentication)
Performs the authentication of a security request based either on the security realm configured in the
Authentication
request or the default realm for the current context |
org.mule.runtime.api.security.SecurityContext |
createSecurityContext(org.mule.runtime.api.security.Authentication auth)
Creates the security context for this security provider
|
boolean |
supports(Class<?> aClass)
Checks if the class of authentication is supported by this security provider
|
org.mule.runtime.api.security.Authentication authenticate(org.mule.runtime.api.security.Authentication authentication)
throws org.mule.runtime.api.security.SecurityException
Authentication
request or the default realm for the current contextauthentication - The Authentication requestorg.mule.runtime.api.security.SecurityException - In case authentication failsauthenticate(Authentication)boolean supports(Class<?> aClass)
aClass - The class to verifyorg.mule.runtime.api.security.SecurityContext createSecurityContext(org.mule.runtime.api.security.Authentication auth)
throws org.mule.runtime.api.security.UnknownAuthenticationTypeException
auth - The Authentication objectSecurityContext for this providerorg.mule.runtime.api.security.UnknownAuthenticationTypeException - In case the authentication type is not known.createSecurityContext(Authentication)Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.