Module java4ever.binding
Package tech.deplant.java4ever.binding
Record Class Crypto.ParamsOfNaclBoxOpen
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Crypto.ParamsOfNaclBoxOpen
- Record Components:
encrypted
- Encoded with `base64`. Data that must be decrypted.nonce
- NoncetheirPublic
- Sender's public key - unprefixed 0-padded to 64 symbols hex stringsecretKey
- Receiver's private key - unprefixed 0-padded to 64 symbols hex string
- Enclosing class:
Crypto
-
Constructor Summary
ConstructorsConstructorDescriptionParamsOfNaclBoxOpen
(String encrypted, String nonce, String theirPublic, String secretKey) Creates an instance of aParamsOfNaclBoxOpen
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theencrypted
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.nonce()
Returns the value of thenonce
record component.Returns the value of thesecretKey
record component.Returns the value of thetheirPublic
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ParamsOfNaclBoxOpen
Creates an instance of aParamsOfNaclBoxOpen
record class.- Parameters:
encrypted
- the value for theencrypted
record componentnonce
- the value for thenonce
record componenttheirPublic
- the value for thetheirPublic
record componentsecretKey
- the value for thesecretKey
record 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)
. -
encrypted
-
nonce
-
theirPublic
Returns the value of thetheirPublic
record component.- Returns:
- the value of the
theirPublic
record component
-
secretKey
-