Record Class NuggetAuthenticationResult
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetAuthenticationResult
- Record Components:
outcome- outcome categoryfailureReason- safe failure reasonnuggetId- nugget idcorrelationId- audit correlation idadmissionId- bounded expiring admission session id for this runtime processretryAfter- delay hint for throttled callerstimestamp- result timestamperror- normalized safe error, ornullmetadata- redacted safe metadata
public record NuggetAuthenticationResult(NuggetAuthenticationOutcome outcome, NuggetAuthenticationFailureReason failureReason, String nuggetId, String correlationId, String admissionId, Duration retryAfter, Instant timestamp, RemoteError error, Map<String,String> metadata)
extends Record
Safe, immutable result of a nugget PIN admission attempt.
The result never contains clear PINs, verifier bytes, salts, hashes, KDF output, reusable authentication envelopes, or secret source values. A successful result is admission only and does not carry authorization. The admission id, when present, is a runtime-scoped session handle with bounded retention and expiration. Callers may reuse it for read-only operations until the service rejects it or it expires; possession of the id is never a bearer authorization grant.
-
Constructor Summary
ConstructorsConstructorDescriptionNuggetAuthenticationResult(NuggetAuthenticationOutcome outcome, NuggetAuthenticationFailureReason failureReason, String nuggetId, String correlationId, String admissionId, Duration retryAfter, Instant timestamp, RemoteError error, Map<String, String> metadata) Creates a defensive immutable result. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns whether the request was accepted for admission.Returns the value of theadmissionIdrecord component.Returns the value of thecorrelationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefailureReasonrecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.nuggetId()Returns the value of thenuggetIdrecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of theretryAfterrecord component.Returns the value of thetimestamprecord component.toString()
-
Constructor Details
-
NuggetAuthenticationResult
public NuggetAuthenticationResult(NuggetAuthenticationOutcome outcome, NuggetAuthenticationFailureReason failureReason, String nuggetId, String correlationId, String admissionId, Duration retryAfter, Instant timestamp, RemoteError error, Map<String, String> metadata) Creates a defensive immutable result.
-
-
Method Details
-
accepted
public boolean accepted()Returns whether the request was accepted for admission.- Returns:
- accepted flag
-
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). -
outcome
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-
nuggetId
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-
admissionId
Returns the value of theadmissionIdrecord component.- Returns:
- the value of the
admissionIdrecord component
-
retryAfter
Returns the value of theretryAfterrecord component.- Returns:
- the value of the
retryAfterrecord component
-
timestamp
-
error
-
metadata
-