CredentialsExpiredException class

The login was refused because the password has expired (UserDetails.isCredentialsNonExpired is false).

Checked after the password matched, so only the real user learns it and can be sent to a "change your password" page.

Spring (Java): CredentialsExpiredException.

Inheritance

Constructors

CredentialsExpiredException([String message = 'User credentials have expired', Object? cause])
A refused login; message defaults to 'User credentials have expired'.

Properties

authenticationRequest ↔ Authentication?
The login request that failed, set by ProviderManager; null when unknown.
getter/setter pairinherited
cause → Object?
The lower-level error that led to this one, or null.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong, for logs; never sent to the client.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited