Class RequiredFactorError
java.lang.Object
org.springframework.security.authorization.RequiredFactorError
An error when the requirements of
RequiredFactor are not met.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequiredFactorErrorcreateExpired(RequiredFactor requiredFactor) static RequiredFactorErrorcreateMissing(RequiredFactor requiredFactor) booleaninthashCode()booleanTrue if notisMissing()but was older than theRequiredFactor.getValidDuration().booleanTrue if noFactorGrantedAuthority.getAuthority()on theAuthenticationmatchedRequiredFactor.getAuthority().toString()
-
Method Details
-
getRequiredFactor
-
isExpired
public boolean isExpired()True if notisMissing()but was older than theRequiredFactor.getValidDuration().- Returns:
- true if expired, else false
-
isMissing
public boolean isMissing()True if noFactorGrantedAuthority.getAuthority()on theAuthenticationmatchedRequiredFactor.getAuthority().- Returns:
- true if missing, else false.
-
equals
-
hashCode
public int hashCode() -
toString
-
createMissing
-
createExpired
-