Interface AuthenticationHandler
@MinMuleVersion("4.1")
@NoImplement
public interface AuthenticationHandler
This handler allows to configure the current context's authentication, used for encryption and inbound authentication, based on
a given
Authentication request.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.security.AuthenticationcreateAuthentication(org.mule.runtime.api.security.Credentials credentials) org.mule.runtime.api.security.CredentialsBuilderOptional<org.mule.runtime.api.security.Authentication>voidsetAuthentication(List<String> securityProviders, org.mule.runtime.api.security.Authentication authentication) Updates the current context with the givenAuthenticationinformation.voidsetAuthentication(org.mule.runtime.api.security.Authentication authentication) Updates the current context with the givenAuthenticationinformation.
-
Method Details
-
setAuthentication
void setAuthentication(org.mule.runtime.api.security.Authentication authentication) throws org.mule.runtime.api.security.SecurityProviderNotFoundException, org.mule.runtime.api.security.SecurityException, org.mule.runtime.api.security.UnknownAuthenticationTypeException Updates the current context with the givenAuthenticationinformation.- Parameters:
authentication- theAuthenticationused for setting up the new security context- Throws:
org.mule.runtime.api.security.SecurityProviderNotFoundException- if no security provider able to authenticate the given authentication is foundorg.mule.runtime.api.security.SecurityException- if an error occurs during the update of the security contextorg.mule.runtime.api.security.UnknownAuthenticationTypeException- if no security provider able to handle the given authentication is found
-
setAuthentication
void setAuthentication(List<String> securityProviders, org.mule.runtime.api.security.Authentication authentication) throws org.mule.runtime.api.security.SecurityProviderNotFoundException, org.mule.runtime.api.security.SecurityException, org.mule.runtime.api.security.UnknownAuthenticationTypeException Updates the current context with the givenAuthenticationinformation.- Parameters:
securityProviders- theListof security providers that will be added to theSecurityManagerauthentication- theAuthenticationused for setting up the new security context- Throws:
org.mule.runtime.api.security.SecurityProviderNotFoundException- if no security provider able to authenticate the given authentication is foundorg.mule.runtime.api.security.SecurityException- if an error occurs during the update of the security contextorg.mule.runtime.api.security.UnknownAuthenticationTypeException- if no security provider able to handle the given authentication is found
-
getAuthentication
Optional<org.mule.runtime.api.security.Authentication> getAuthentication()- Returns:
- the
Authenticationin the current context
-
createAuthentication
org.mule.runtime.api.security.Authentication createAuthentication(org.mule.runtime.api.security.Credentials credentials) - Parameters:
credentials- theCredentialsto be used forthisAuthentication- Returns:
- a new instance of a default implementation of
Authentication
-
createCredentialsBuilder
org.mule.runtime.api.security.CredentialsBuilder createCredentialsBuilder()- Returns:
- a new
CredentialsBuilder
-