Record Class OneTimeCodeRequestResult
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.ott.OneTimeCodeRequestResult
- Record Components:
accepted- alwaystrue: the request was accepted, nothing is promised about delivery.expiresIn- how long a code is valid, from the policy.
Outcome of a request for a one-time code. It is identical whether or not a code was sent, so that it cannot reveal
whether an identifier exists.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOneTimeCodeRequestResult(boolean accepted, Duration expiresIn) Creates an instance of aOneTimeCodeRequestResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresInrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
expiresIn
Returns the value of theexpiresInrecord component.- Returns:
- the value of the
expiresInrecord component
-