Package net.finmath.pontes.erc7573
Record Class PontesOracleRequest.Decryption
java.lang.Object
java.lang.Record
net.finmath.pontes.erc7573.PontesOracleRequest.Decryption
- All Implemented Interfaces:
PontesOracleRequest
- Enclosing interface:
PontesOracleRequest
public static record PontesOracleRequest.Decryption(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, byte[] encryptedKey, byte[] originalTransaction)
extends Record
implements PontesOracleRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.finmath.pontes.erc7573.PontesOracleRequest
PontesOracleRequest.Decryption, PontesOracleRequest.EncryptedKey, PontesOracleRequest.Generation, PontesOracleRequest.Verification -
Constructor Summary
ConstructorsConstructorDescriptionDecryption(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, byte[] encryptedKey, byte[] originalTransaction) Creates an instance of aDecryptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.Returns the value of theconsumerIdrecord component.byte[]Returns the value of theencryptedKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoracleProxyrecord component.byte[]Returns the value of theoriginalTransactionrecord component.Returns the value of therequestIdrecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decryption
public Decryption(String oracleProxy, BigInteger requestId, BigInteger consumerId, String sender, String callback, byte[] encryptedKey, byte[] originalTransaction) Creates an instance of aDecryptionrecord class.- Parameters:
oracleProxy- the value for theoracleProxyrecord componentrequestId- the value for therequestIdrecord componentconsumerId- the value for theconsumerIdrecord componentsender- the value for thesenderrecord componentcallback- the value for thecallbackrecord componentencryptedKey- the value for theencryptedKeyrecord componentoriginalTransaction- the value for theoriginalTransactionrecord component
-
-
Method Details
-
encryptedKey
public byte[] encryptedKey()Returns the value of theencryptedKeyrecord component.- Returns:
- the value of the
encryptedKeyrecord component
-
originalTransaction
public byte[] originalTransaction()Returns the value of theoriginalTransactionrecord component.- Returns:
- the value of the
originalTransactionrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
oracleProxy
Returns the value of theoracleProxyrecord component.- Specified by:
oracleProxyin interfacePontesOracleRequest- Returns:
- the value of the
oracleProxyrecord component
-
requestId
Returns the value of therequestIdrecord component.- Specified by:
requestIdin interfacePontesOracleRequest- Returns:
- the value of the
requestIdrecord component
-
consumerId
Returns the value of theconsumerIdrecord component.- Specified by:
consumerIdin interfacePontesOracleRequest- Returns:
- the value of the
consumerIdrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
callback
Returns the value of thecallbackrecord component.- Specified by:
callbackin interfacePontesOracleRequest- Returns:
- the value of the
callbackrecord component
-