Record Class SignInPolicies.Strong
java.lang.Object
java.lang.Record
com.iizix.server.user.mfa.SignInPolicies.Strong
- Record Components:
policy- The policy,StrongAuthPolicy.OFFwhen the sources set none and when they fail.problem- The rule the combination breaks, or the value outside its range, in plain words; null when the policy resolved.
- Enclosing class:
SignInPolicies
The strong authentication policy of an application as its sources resolved it, or the problem that keeps them from resolving (CC-SIGNIN-STRONG-POLICY).
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SignInPolicies.StrongThe policy of an application whose sources set none.Constructor Summary
ConstructorsConstructorDescriptionStrong(StrongAuthPolicy policy, String problem) Creates an instance of aStrongrecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFailed()Checks if the sources failed to resolve: the application fails closed, every sign-in is refused.policy()Returns the value of thepolicyrecord component.problem()Returns the value of theproblemrecord component.final StringtoString()Returns a string representation of this record class.
Field Details
OFF
The policy of an application whose sources set none.
Constructor Details
Method Details
isFailed
public boolean isFailed()Checks if the sources failed to resolve: the application fails closed, every sign-in is refused.- Returns:
- true when they failed.
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. All components in this record class are compared withObjects::equals(Object,Object).policy
problem