Package co.cryptoservice.sdk
Record Class KmsDecryptRequest
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.KmsDecryptRequest
- Record Components:
keyId- the server-held key's identifierciphertext- the ciphertext, as the server returned itprovider- the KMS provider, or null for the defaultcontext- the encryption context, or null
public record KmsDecryptRequest(String keyId, String ciphertext, String provider, Map<String,String> context)
extends Record
The body of
POST /v2/kms/decrypt.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theciphertextrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keyId()Returns the value of thekeyIdrecord component.static KmsDecryptRequestA request with only the required members; the optional ones are null.provider()Returns the value of theproviderrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.withContext(Map<String, String> context) A copy withcontextreplaced.withProvider(String provider) A copy withproviderreplaced.
-
Constructor Details
-
Method Details
-
of
A request with only the required members; the optional ones are null.- Parameters:
keyId- the server-held key's identifierciphertext- the ciphertext, as the server returned it- Returns:
- the request
-
withProvider
A copy withproviderreplaced.- Parameters:
provider- the KMS provider, or null for the default- Returns:
- the new request
-
withContext
A copy withcontextreplaced.- Parameters:
context- the encryption context, or null- Returns:
- the new request
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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). -
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-
ciphertext
Returns the value of theciphertextrecord component.- Returns:
- the value of the
ciphertextrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-