Record Class CredentialVerificationResult.Failed
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.credential.password.CredentialVerificationResult.Failed
- Record Components:
publicFailureType- classification suitable for UI/API surfacesinternalAuditEventType- internal classification for audit sinks
- All Implemented Interfaces:
CredentialVerificationResult
- Enclosing interface:
CredentialVerificationResult
public static record CredentialVerificationResult.Failed(PublicFailureType publicFailureType, InternalAuditEventType internalAuditEventType)
extends Record
implements CredentialVerificationResult
Verification did not succeed. Reasons range from a genuine credential
mismatch through structural envelope problems to provider-level
unavailability. The two classification fields are independent on
purpose: every public reaction must be derivable from
publicFailureType() alone.-
Nested Class Summary
Nested classes/interfaces inherited from interface CredentialVerificationResult
CredentialVerificationResult.Failed, CredentialVerificationResult.VerifiedModifier and TypeInterfaceDescriptionstatic final recordVerification did not succeed.static final recordSuccessful verification. -
Constructor Summary
ConstructorsConstructorDescriptionFailed(PublicFailureType publicFailureType, InternalAuditEventType internalAuditEventType) Creates an instance of aFailedrecord 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.Returns the value of theinternalAuditEventTyperecord component.Returns the value of thepublicFailureTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Failed
Creates an instance of aFailedrecord class.- Parameters:
publicFailureType- the value for thepublicFailureTyperecord componentinternalAuditEventType- the value for theinternalAuditEventTyperecord component
-
-
Method Details
-
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). -
publicFailureType
Returns the value of thepublicFailureTyperecord component.- Returns:
- the value of the
publicFailureTyperecord component
-
internalAuditEventType
Returns the value of theinternalAuditEventTyperecord component.- Returns:
- the value of the
internalAuditEventTyperecord component
-