public interface LoginModulePlugin
DefaultLoginModule
for a specific type of Credentials. Does not rely explicitly
on any classes from org.apache.jackrabbit.core.*| Modifier and Type | Field and Description |
|---|---|
static int |
IMPERSONATION_DEFAULT |
static int |
IMPERSONATION_FAILED |
static int |
IMPERSONATION_SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
void |
addPrincipals(Set principals)
|
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
DefaultLoginModule.impersonate(java.security.Principal, javax.jcr.Credentials)
. |
static final int IMPERSONATION_DEFAULT
static final int IMPERSONATION_SUCCESS
static final int IMPERSONATION_FAILED
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 determinationcredentials - void doInit(CallbackHandler callbackHandler, javax.jcr.Session session, Map options) throws LoginException
LoginExceptionDefaultLoginModule.doInit(javax.security.auth.callback.CallbackHandler, javax.jcr.Session, java.util.Map)Principal getPrincipal(javax.jcr.Credentials credentials)
DefaultLoginModule.getPrincipal(javax.jcr.Credentials)DefaultLoginModule.getPrincipal(javax.jcr.Credentials)void addPrincipals(Set principals)
principals - original collection of principalsAuthenticationPlugin getAuthentication(Principal principal, javax.jcr.Credentials creds) throws javax.jcr.RepositoryException
DefaultLoginModule.getAuthentication(java.security.Principal, javax.jcr.Credentials)javax.jcr.RepositoryExceptionDefaultLoginModule.getAuthentication(java.security.Principal, javax.jcr.Credentials)int impersonate(Principal principal, javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException, FailedLoginException
IMPERSONATION_DEFAULT if the impersonation should be handled
by
DefaultLoginModule.impersonate(java.security.Principal, javax.jcr.Credentials)
.IMPERSONATION_DEFAULT,
IMPERSONATION_SUCCESS or IMPERSONATION_FAILEDjavax.jcr.RepositoryExceptionFailedLoginExceptionDefaultLoginModule.impersonate(java.security.Principal, javax.jcr.Credentials)Copyright © 2014 The Apache Software Foundation. All rights reserved.