|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.module.jaas.JaasSimpleAuthenticationProvider
public class JaasSimpleAuthenticationProvider
This is the Provider for Mule's Jaas Security.
Nested Class Summary | |
---|---|
static class |
JaasSimpleAuthenticationProvider.JaasConfig
The JaasConfig class extends the Jaas Configuration in order to be able to configure the jaas security programmatically. |
Field Summary |
---|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
JaasSimpleAuthenticationProvider()
|
Method Summary | |
---|---|
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. |
SecurityContext |
createSecurityContext(Authentication auth)
|
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 |
String |
getName()
|
void |
initialise()
The initialise method checks whether a jaas configuration file exists. |
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 |
void |
setName(String name)
|
boolean |
supports(Class aClass)
checks whether the class is supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaasSimpleAuthenticationProvider()
Method Detail |
---|
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 String getName()
getName
in interface SecurityProvider
public final void setName(String name)
setName
in interface SecurityProvider
name
- public final Authentication authenticate(Authentication authentication) throws SecurityException
authenticate
in interface SecurityProvider
SecurityException
public final boolean supports(Class aClass)
supports
in interface SecurityProvider
aClass
-
public final SecurityContext createSecurityContext(Authentication auth) throws UnknownAuthenticationTypeException
createSecurityContext
in interface SecurityProvider
UnknownAuthenticationTypeException
- This occurs when the Security
Factory cannot be createdpublic final void initialise() throws InitialisationException
initialise
in interface Initialisable
InitialisationException
RecoverableException
- if an error occurs that can be recovered from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |