public class PluggableDefaultLoginModule
extends org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
DefaultLoginModule
to provide implementations registered with the OSGI framework implementing
LoginModulePlugin
. Like the DefaultLoginModule, this LoginModule
inherits the core of its functionality from
AbstractLoginModule
Constructor and Description |
---|
PluggableDefaultLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit(CallbackHandler callbackHandler,
javax.jcr.Session session,
Map options) |
protected org.apache.jackrabbit.core.security.authentication.Authentication |
getAuthentication(Principal principal,
javax.jcr.Credentials creds) |
protected javax.jcr.Credentials |
getCredentials()
Since the AbstractLoginModule getCredentials does not know anything about TrustedCredentials we have to re-try here.
|
protected Principal |
getPrincipal(javax.jcr.Credentials creds) |
protected Set |
getPrincipals() |
protected boolean |
impersonate(Principal principal,
javax.jcr.Credentials creds) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
protected boolean |
supportsCredentials(javax.jcr.Credentials creds) |
commit, getTokenExpiration, getUserID, isDisableTokenAuth, setDisableTokenAuth, setTokenExpiration
abort, authenticate, getAdminId, getAnonymousId, getImpersonatorSubject, getPreAuthAttributeName, getPrincipalProvider, isAnonymous, isImpersonation, isInitialized, isPreAuthenticated, login, logout, setAdminId, setAnonymousId, setPrincipalProvider
protected void doInit(CallbackHandler callbackHandler, javax.jcr.Session session, Map options) throws LoginException
doInit
in class org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
LoginException
DefaultLoginModule.doInit(javax.security.auth.callback.CallbackHandler, javax.jcr.Session, java.util.Map)
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
AbstractLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
protected Principal getPrincipal(javax.jcr.Credentials creds)
getPrincipal
in class org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
DefaultLoginModule.getPrincipal(javax.jcr.Credentials)
protected Set getPrincipals()
getPrincipals
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
AbstractLoginModule.getPrincipals()
protected org.apache.jackrabbit.core.security.authentication.Authentication getAuthentication(Principal principal, javax.jcr.Credentials creds) throws javax.jcr.RepositoryException
getAuthentication
in class org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
javax.jcr.RepositoryException
DefaultLoginModule.getAuthentication(java.security.Principal, javax.jcr.Credentials)
protected boolean impersonate(Principal principal, javax.jcr.Credentials creds) throws javax.jcr.RepositoryException, FailedLoginException
impersonate
in class org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
javax.jcr.RepositoryException
FailedLoginException
DefaultLoginModule.impersonate(java.security.Principal, javax.jcr.Credentials)
protected javax.jcr.Credentials getCredentials()
getCredentials
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
protected boolean supportsCredentials(javax.jcr.Credentials creds)
supportsCredentials
in class org.apache.jackrabbit.core.security.authentication.DefaultLoginModule
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.