Java Code Examples for org.springframework.security.core.userdetails.UserDetails#isCredentialsNonExpired()
The following examples show how to use
org.springframework.security.core.userdetails.UserDetails#isCredentialsNonExpired() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OpenIdAuthenticationProvider.java From cola with MIT License | 5 votes |
@Override public void check(UserDetails user) { if (!user.isCredentialsNonExpired()) { logger.debug("User account credentials have expired"); throw new CredentialsExpiredException(messages.getMessage( "AbstractUserDetailsAuthenticationProvider.credentialsExpired", "User credentials have expired")); } }
Example 2
Source File: SmsAuthenticationProvider.java From cola with MIT License | 5 votes |
@Override public void check(UserDetails user) { if (!user.isCredentialsNonExpired()) { logger.debug("User account credentials have expired"); throw new CredentialsExpiredException(messages.getMessage( "AbstractUserDetailsAuthenticationProvider.credentialsExpired", "User credentials have expired")); } }
Example 3
Source File: AcAuthenticationProvider.java From cola with MIT License | 5 votes |
@Override public void check(UserDetails user) { if (!user.isCredentialsNonExpired()) { logger.debug("User account credentials have expired"); throw new CredentialsExpiredException(messages.getMessage( "AbstractUserDetailsAuthenticationProvider.credentialsExpired", "User credentials have expired")); } }
Example 4
Source File: WebAuthnAuthenticationProvider.java From webauthn4j-spring-security with Apache License 2.0 | 5 votes |
@Override public void check(UserDetails user) { if (!user.isCredentialsNonExpired()) { logger.debug("User account credentials have expired"); throw new CredentialsExpiredException(messages.getMessage( "WebAuthnAuthenticationProvider.credentialsExpired", "User credentials have expired")); } }
Example 5
Source File: AbstractUserDetailsAuthenticationProvider.java From Taroco with Apache License 2.0 | 5 votes |
@Override public void check(UserDetails user) { if (!user.isCredentialsNonExpired()) { log.debug("User account credentials have expired"); throw new CredentialsExpiredException(AbstractUserDetailsAuthenticationProvider.this.messages.getMessage("AbstractUserDetailsAuthenticationProvider.credentialsExpired", "User credentials have expired")); } }