Class RequiredFactor
java.lang.Object
org.springframework.security.authorization.RequiredFactor
The requirements for an
FactorGrantedAuthority
to be considered valid.- Since:
- 7.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RequiredFactor.Builder
builder()
Creates a newRequiredFactor.Builder
.boolean
@Nullable Duration
How long theFactorGrantedAuthority
is valid for.int
hashCode()
toString()
static RequiredFactor.Builder
withAuthority
(String authority) Creates aRequiredFactor.Builder
with the specified authority.
-
Method Details
-
getAuthority
- Returns:
- the authority.
-
getValidDuration
How long theFactorGrantedAuthority
is valid for.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-
withAuthority
Creates aRequiredFactor.Builder
with the specified authority.- Parameters:
authority
- the authority.- Returns:
- the builder.
-
builder
Creates a newRequiredFactor.Builder
.- Returns:
-