Package co.cryptoservice.sdk
Record Class KmsWrapResult
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.KmsWrapResult
- Record Components:
keyId- the provider's key identifier (local keys: local-<hex>)provider- the provider that served the request (local, aws, gcp, vault)wrappedKey- the wrapped key; opaque, provider-specific string; pass it back unchanged
What
POST /v2/kms/wrap answers: wrap an existing key using a managed KMS key.-
Constructor Summary
ConstructorsConstructorDescriptionKmsWrapResult(String keyId, String provider, String wrappedKey) Creates an instance of aKmsWrapResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.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 thewrappedKeyrecord component.
-
Constructor Details
-
KmsWrapResult
Creates an instance of aKmsWrapResultrecord class.- Parameters:
keyId- the value for thekeyIdrecord componentprovider- the value for theproviderrecord componentwrappedKey- the value for thewrappedKeyrecord component
-
-
Method Details
-
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
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
wrappedKey
Returns the value of thewrappedKeyrecord component.- Returns:
- the value of the
wrappedKeyrecord component
-