Record Class BackChannelTransactionInitializeRequestData
java.lang.Object
java.lang.Record
org.forgerock.am.authn.backchannel.BackChannelTransactionInitializeRequestData
- Record Components:
type- The type of authentication that is required. Currently only "service" is supported.value- The value of the authentication that is required, usually the name of a tree.subject- The subject of the transaction. May be null if no subject has been set.data- Optional data to add to the initial tree state.trackingId- The tracking ID for the transaction. This is used to correlate the transaction with the audit event.timeoutSeconds- The timeout in seconds for the transaction. If null, the default timeout will be used.allowRetry- Whether to allow the user to retry the transaction if it fails.
public record BackChannelTransactionInitializeRequestData(String type, String value, BackChannelTransactionInitializeRequestData.Subject subject, Map<String,Object> data, String trackingId, Long timeoutSeconds, boolean allowRetry)
extends Record
This class is a record that represents the request data for a back channel transaction initialization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThis class is a record that represents the subject of a back channel transaction initialization. -
Constructor Summary
ConstructorsConstructorDescriptionBackChannelTransactionInitializeRequestData(String type, String value, BackChannelTransactionInitializeRequestData.Subject subject, Map<String, Object> data, String trackingId, Long timeoutSeconds, boolean allowRetry) Creates an instance of aBackChannelTransactionInitializeRequestDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowRetryrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subject()Returns the value of thesubjectrecord component.Returns the value of thetimeoutSecondsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackingIdrecord component.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
BackChannelTransactionInitializeRequestData
public BackChannelTransactionInitializeRequestData(String type, String value, BackChannelTransactionInitializeRequestData.Subject subject, Map<String, Object> data, String trackingId, Long timeoutSeconds, boolean allowRetry) Creates an instance of aBackChannelTransactionInitializeRequestDatarecord class.- Parameters:
type- the value for thetyperecord componentvalue- the value for thevaluerecord componentsubject- the value for thesubjectrecord componentdata- the value for thedatarecord componenttrackingId- the value for thetrackingIdrecord componenttimeoutSeconds- the value for thetimeoutSecondsrecord componentallowRetry- the value for theallowRetryrecord component
-
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
trackingId
Returns the value of thetrackingIdrecord component.- Returns:
- the value of the
trackingIdrecord component
-
timeoutSeconds
Returns the value of thetimeoutSecondsrecord component.- Returns:
- the value of the
timeoutSecondsrecord component
-
allowRetry
public boolean allowRetry()Returns the value of theallowRetryrecord component.- Returns:
- the value of the
allowRetryrecord component
-