public class JaasSimpleAuthenticationProvider extends AbstractSecurityProvider
Modifier and Type | Class and Description |
---|---|
static class |
JaasSimpleAuthenticationProvider.JaasConfig
The JaasConfig class extends the Jaas Configuration in order to be able to
configure the jaas security programmatically.
|
PHASE_NAME
Constructor and Description |
---|
JaasSimpleAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
Authentication |
authenticate(Authentication authentication)
The authenticate method first creates the jaas Login Context using the
callback handler and the name of the class or directory to prtect.
|
protected void |
doInitialise()
The initialise method checks whether a jaas configuration file exists.
|
String |
getCredentials()
Gets the user's credentials, i.e.
|
String |
getLoginConfig()
Gets the Login Configuration
|
String |
getLoginContextName()
Gets the Login Context Name
|
String |
getLoginModule()
Gets the login module name
|
void |
setCredentials(String credentials)
Sets the user's credentials.
|
void |
setLoginConfig(String loginConfig)
Sets the login Configuration
|
void |
setLoginContextName(String loginContextName)
Sets the Login Context name
|
void |
setLoginModule(String loginModule)
sets the login module name
|
createSecurityContext, getName, getSecurityContextFactory, initialise, setName, setSecurityContextFactory, supports
public final void setLoginConfig(String loginConfig)
loginConfig
- public final String getLoginConfig()
public final void setLoginContextName(String loginContextName)
loginContextName
- public final String getLoginContextName()
public final String getCredentials()
public final void setCredentials(String credentials)
credentials
- public final String getLoginModule()
public final void setLoginModule(String loginModule)
loginModule
- public final Authentication authenticate(Authentication authentication) throws SecurityException
SecurityException
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractSecurityProvider
InitialisationException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.