|
spring-security-web | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider
public class PreAuthenticatedAuthenticationProvider
Processes a pre-authenticated authentication request. The request will
typically originate from a AbstractPreAuthenticatedProcessingFilter
subclass.
This authentication provider will not perform any checks on authentication requests, as they should already be pre-authenticated. However, the AuthenticationUserDetailsService implementation may still throw a UsernameNotFoundException, for example.
| Field Summary |
|---|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
PreAuthenticatedAuthenticationProvider()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Check whether all required properties have been set. |
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
Authenticate the given PreAuthenticatedAuthenticationToken. |
int |
getOrder()
|
void |
setOrder(int i)
|
void |
setPreAuthenticatedUserDetailsService(org.springframework.security.core.userdetails.AuthenticationUserDetailsService aPreAuthenticatedUserDetailsService)
Set the AuthenticatedUserDetailsServices to be used. |
void |
setThrowExceptionWhenTokenRejected(boolean throwExceptionWhenTokenRejected)
If true, causes the provider to throw a BadCredentialsException if the presented authentication request is invalid (contains a null principal or credentials). |
void |
setUserDetailsChecker(org.springframework.security.core.userdetails.UserDetailsChecker userDetailsChecker)
Sets the strategy which will be used to validate the loaded UserDetails object for the user. |
boolean |
supports(Class<? extends Object> authentication)
Indicate that this provider only supports PreAuthenticatedAuthenticationToken (sub)classes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreAuthenticatedAuthenticationProvider()
| Method Detail |
|---|
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBean
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
If the principal contained in the authentication object is null, the request will be ignored to allow other providers to authenticate it.
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(Class<? extends Object> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderpublic void setPreAuthenticatedUserDetailsService(org.springframework.security.core.userdetails.AuthenticationUserDetailsService aPreAuthenticatedUserDetailsService)
aPreAuthenticatedUserDetailsService - public int getOrder()
getOrder in interface Orderedpublic void setOrder(int i)
public void setThrowExceptionWhenTokenRejected(boolean throwExceptionWhenTokenRejected)
public void setUserDetailsChecker(org.springframework.security.core.userdetails.UserDetailsChecker userDetailsChecker)
AccountStatusUserDetailsChecker.
userDetailsChecker -
|
spring-security-web | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||