|
||||||||||
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 java.jcr.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 | |
---|---|
boolean |
canHandle(javax.jcr.Credentials credentials)
Determine if this LoginModule can process this set of Credentials. |
void |
doInit(javax.security.auth.callback.CallbackHandler callbackHandler,
javax.jcr.Session session,
java.util.Map options)
|
AuthenticationPlugin |
getAuthentication(java.security.Principal principal,
javax.jcr.Credentials creds)
Return a PluggableAuthentication object that can authenticate the give Principal and Credentials. |
java.security.Principal |
getPrincipal(javax.jcr.Credentials credentials)
Return a Principal object, or null. |
int |
impersonate(java.security.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(javax.security.auth.callback.CallbackHandler callbackHandler, javax.jcr.Session session, java.util.Map options) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#doInit
java.security.Principal getPrincipal(javax.jcr.Credentials credentials)
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getPrincipal
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule#getPrincipal
AuthenticationPlugin getAuthentication(java.security.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(java.security.Principal principal, javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException, javax.security.auth.login.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
javax.security.auth.login.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 |