Record Class MfaPolicyService.MfaPolicy
java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.MfaPolicyService.MfaPolicy
- Enclosing interface:
MfaPolicyService
public static record MfaPolicyService.MfaPolicy(boolean required, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Duration challengeTtl, List<AuthProviderType> allowedProviderTypes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AuthProviderType> The field for theallowedProviderTypesrecord component.private final DurationThe field for thechallengeTtlrecord component.private final StringThe field for thedestinationHintrecord component.private final StringThe field for thedisplayNamerecord component.private final StringThe field for theproviderKeyrecord component.private final AuthProviderTypeThe field for theproviderTyperecord component.private final booleanThe field for therequiredrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMfaPolicy(boolean required, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Duration challengeTtl, List<AuthProviderType> allowedProviderTypes) Creates an instance of aMfaPolicyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedProviderTypesrecord component.Returns the value of thechallengeTtlrecord component.Returns the value of thedestinationHintrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MfaPolicyService.MfaPolicyReturns the value of theproviderKeyrecord component.Returns the value of theproviderTyperecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
required
private final boolean requiredThe field for therequiredrecord component. -
providerKey
The field for theproviderKeyrecord component. -
providerType
The field for theproviderTyperecord component. -
displayName
The field for thedisplayNamerecord component. -
destinationHint
The field for thedestinationHintrecord component. -
challengeTtl
The field for thechallengeTtlrecord component. -
allowedProviderTypes
The field for theallowedProviderTypesrecord component.
-
-
Constructor Details
-
MfaPolicy
public MfaPolicy(boolean required, String providerKey, AuthProviderType providerType, String displayName, String destinationHint, Duration challengeTtl, List<AuthProviderType> allowedProviderTypes) Creates an instance of aMfaPolicyrecord class.- Parameters:
required- the value for therequiredrecord componentproviderKey- the value for theproviderKeyrecord componentproviderType- the value for theproviderTyperecord componentdisplayName- the value for thedisplayNamerecord componentdestinationHint- the value for thedestinationHintrecord componentchallengeTtl- the value for thechallengeTtlrecord componentallowedProviderTypes- the value for theallowedProviderTypesrecord component
-
-
Method Details
-
notRequired
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
providerKey
Returns the value of theproviderKeyrecord component.- Returns:
- the value of the
providerKeyrecord component
-
providerType
Returns the value of theproviderTyperecord component.- Returns:
- the value of the
providerTyperecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
destinationHint
Returns the value of thedestinationHintrecord component.- Returns:
- the value of the
destinationHintrecord component
-
challengeTtl
Returns the value of thechallengeTtlrecord component.- Returns:
- the value of the
challengeTtlrecord component
-
allowedProviderTypes
Returns the value of theallowedProviderTypesrecord component.- Returns:
- the value of the
allowedProviderTypesrecord component
-
CHENILE