Package co.cryptoservice.sdk
Record Class KmsWrapRequest
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.KmsWrapRequest
- Record Components:
keyId- the server-held key's identifierunwrappedKey- the unwrapped keyprovider- the KMS provider, or null for the defaultcontext- the encryption context, or null
public record KmsWrapRequest(String keyId, String unwrappedKey, String provider, Map<String,String> context)
extends Record
The body of
POST /v2/kms/wrap.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontext()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 KmsWrapRequestA 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.Returns the value of theunwrappedKeyrecord component.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 identifierunwrappedKey- the unwrapped key- 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
-
unwrappedKey
Returns the value of theunwrappedKeyrecord component.- Returns:
- the value of the
unwrappedKeyrecord 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
-