|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoginModulePlugin
Provide login module functionality that extends
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
for a specific type of Credentials
. Does not rely explicitly
on any classes from org.apache.jackrabbit.core.*
Field Summary | |
---|---|
static int |
IMPERSONATION_DEFAULT
|
static int |
IMPERSONATION_FAILED
|
static int |
IMPERSONATION_SUCCESS
|
Method Summary | |
---|---|
void |
addPrincipals(Set principals)
Enables to add additional Principal objects, such as groups or
roles, to the Subject . |
boolean |
canHandle(javax.jcr.Credentials credentials)
Determine if this LoginModule can process this set of Credentials. |
void |
doInit(CallbackHandler callbackHandler,
javax.jcr.Session session,
Map options)
|
AuthenticationPlugin |
getAuthentication(Principal principal,
javax.jcr.Credentials creds)
Return a PluggableAuthentication object that can authenticate the give Principal and Credentials. |
Principal |
getPrincipal(javax.jcr.Credentials credentials)
Return a Principal object, or null. |
int |
impersonate(Principal principal,
javax.jcr.Credentials credentials)
Returns a code indicating either the status of the impersonation attempt, or IMPERSONATION_DEFAULT if the impersonation should be handled
by
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#impersonate
. |
Field Detail |
---|
static final int IMPERSONATION_DEFAULT
static final int IMPERSONATION_SUCCESS
static final int IMPERSONATION_FAILED
Method Detail |
---|
boolean canHandle(javax.jcr.Credentials credentials)
SimpleCredentials
. A co-operating
AuthenticationHandler
object can set
properties on these credentials at creation time that this class can use
to make this determination
credentials
- void doInit(CallbackHandler callbackHandler, javax.jcr.Session session, Map options) throws LoginException
LoginException
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#doInit
Principal getPrincipal(javax.jcr.Credentials credentials)
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getPrincipal
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getPrincipal
void addPrincipals(Set principals)
Principal
objects, such as groups or
roles, to the Subject
.
principals
- original collection of principalsAuthenticationPlugin getAuthentication(Principal principal, javax.jcr.Credentials creds) throws javax.jcr.RepositoryException
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getAuthentication
javax.jcr.RepositoryException
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getAuthentication
int impersonate(Principal principal, javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException, FailedLoginException
IMPERSONATION_DEFAULT
if the impersonation should be handled
by
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#impersonate
.
IMPERSONATION_DEFAULT
,
IMPERSONATION_SUCCESS
or IMPERSONATION_FAILED
javax.jcr.RepositoryException
FailedLoginException
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#impersonate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |