public class WorkflowInternalAuthProvider
extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
static class |
WorkflowInternalAuthProvider.WorkflowSelfAuthority |
static class |
WorkflowInternalAuthProvider.WorkflowSelfIDMapper |
Constructor and Description |
---|
WorkflowInternalAuthProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userRecord,
Object principal,
Object credentials)
Check that the authentication request is actually valid for the given
user record.
|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userRecord,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken token) |
void |
logConfig() |
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
Object details)
Retrieve the
UserDetails from the relevant store, with the
option of throwing an AuthenticationException immediately if
the presented credentials are incorrect (this is especially useful if it
is necessary to bind to a resource as the user in order to obtain or
generate a UserDetails ). |
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken token) |
void |
setAuthorizedAddresses(String[] addresses) |
void |
setCacheBound(int bound) |
void |
setDao(RunDatabaseDAO dao) |
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
public static final String PREFIX
public void setDao(RunDatabaseDAO dao)
public void setCacheBound(int bound)
public void setAuthorizedAddresses(String[] addresses)
@PostConstruct public void logConfig()
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userRecord, @Nonnull Object principal, @Nonnull Object credentials) throws Exception
userRecord
- as retrieved from the
retrieveUser(String, UsernamePasswordAuthenticationToken)
or UserCache
principal
- the principal that is trying to authenticate (and that we're
trying to bind)credentials
- the credentials (e.g., password) presented by the principalorg.springframework.security.core.AuthenticationException
- AuthenticationException if the credentials could not be
validated (generally a BadCredentialsException
,
an AuthenticationServiceException
)Exception
- If something goes wrong. Will be logged and converted to a
generic AuthenticationException.@Nonnull protected org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, Object details) throws Exception
UserDetails
from the relevant store, with the
option of throwing an AuthenticationException
immediately if
the presented credentials are incorrect (this is especially useful if it
is necessary to bind to a resource as the user in order to obtain or
generate a UserDetails
).username
- The username to retrievedetails
- The details from the authentication request.null
- instead an
exception should the thrown)org.springframework.security.core.AuthenticationException
- if the credentials could not be validated (generally a
BadCredentialsException
, an
AuthenticationServiceException
or
UsernameNotFoundException
)Exception
- If something goes wrong. It will be logged and converted into
a general AuthenticationException.retrieveUser(String,UsernamePasswordAuthenticationToken)
@CallTimeLogger.PerfLogged protected final void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userRecord, org.springframework.security.authentication.UsernamePasswordAuthenticationToken token)
additionalAuthenticationChecks
in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
@Nonnull @CallTimeLogger.PerfLogged protected final org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken token)
retrieveUser
in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.