public class SpringSecurityLoginModule
extends org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
LoginModule
that delegates to a Spring Security AuthenticationManager
. Also, adds
more checks to the pre-authentication scenario.Modifier and Type | Field and Description |
---|---|
protected static org.springframework.security.authentication.AuthenticationManager |
authManager |
protected static org.springframework.security.authentication.AuthenticationManager |
NULL_AUTHENTICATION_MANAGER
When there's no AuthenticationManager available in PentahoSystem, this one will be returned.
|
Constructor and Description |
---|
SpringSecurityLoginModule() |
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 credentials)
Creates a
UsernamePasswordAuthenticationToken from the given principal and credentials
and passes to Spring Security AuthenticationManager . |
protected org.springframework.security.authentication.AuthenticationManager |
getAuthenticationManager() |
protected Principal |
getPrincipal(javax.jcr.Credentials credentials) |
protected boolean |
impersonate(Principal principal,
javax.jcr.Credentials credentials) |
protected boolean |
isPreAuthenticated(javax.jcr.Credentials creds) |
abort, authenticate, commit, getAdminId, getAnonymousId, getCredentials, getImpersonatorSubject, getPreAuthAttributeName, getPrincipalProvider, getPrincipals, getUserID, initialize, isAnonymous, isImpersonation, isInitialized, login, logout, setAdminId, setAnonymousId, setPrincipalProvider, supportsCredentials
protected static final org.springframework.security.authentication.AuthenticationManager NULL_AUTHENTICATION_MANAGER
protected static org.springframework.security.authentication.AuthenticationManager authManager
protected void doInit(CallbackHandler callbackHandler, javax.jcr.Session session, Map options) throws LoginException
doInit
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
LoginException
protected org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
protected org.apache.jackrabbit.core.security.authentication.Authentication getAuthentication(Principal principal, javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException
UsernamePasswordAuthenticationToken
from the given principal
and credentials
and passes to Spring Security AuthenticationManager
.getAuthentication
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
javax.jcr.RepositoryException
protected Principal getPrincipal(javax.jcr.Credentials credentials)
Implementation copied from org.apache.jackrabbit.core.security.simple.SimpleLoginModule
. Delegates to
a PrincipalProvider
.
getPrincipal
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
protected boolean impersonate(Principal principal, javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException, LoginException
Not implemented.
impersonate
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
javax.jcr.RepositoryException
LoginException
protected boolean isPreAuthenticated(javax.jcr.Credentials creds)
isPreAuthenticated
in class org.apache.jackrabbit.core.security.authentication.AbstractLoginModule
Copyright © 2019 Hitachi Vantara. All rights reserved.