Package com.exoscale.sdk.model
Class EncryptRequest
java.lang.Object
com.exoscale.sdk.model.EncryptRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class EncryptRequest
extends Object
EncryptRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe encryption algorithm this key must use. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencryptionAlgorithm(EncryptRequest.EncryptionAlgorithmEnum encryptionAlgorithm) encryptionContext(byte[] encryptionContext) booleanReturn true if this encrypt-request object is equal to o.The encryption algorithm this key must use.byte[]Base64-encoded bytes to be used as the Additional Authenticated Data (AAD) for encryption integrity.org.openapitools.jackson.nullable.JsonNullable<byte[]>byte[]The Base64-encoded plaintext data you wish to encrypt.inthashCode()plaintext(byte[] plaintext) voidsetEncryptionAlgorithm(EncryptRequest.EncryptionAlgorithmEnum encryptionAlgorithm) voidsetEncryptionContext(byte[] encryptionContext) voidsetEncryptionContext_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<byte[]> encryptionContext) voidsetPlaintext(byte[] plaintext) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ENCRYPTION_CONTEXT
- See Also:
-
JSON_PROPERTY_ENCRYPTION_ALGORITHM
- See Also:
-
JSON_PROPERTY_PLAINTEXT
- See Also:
-
-
Constructor Details
-
EncryptRequest
public EncryptRequest()
-
-
Method Details
-
encryptionContext
-
getEncryptionContext
@Nullable public byte[] getEncryptionContext()Base64-encoded bytes to be used as the Additional Authenticated Data (AAD) for encryption integrity.- Returns:
- encryptionContext
-
getEncryptionContext_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<byte[]> getEncryptionContext_JsonNullable() -
setEncryptionContext_JsonNullable
public void setEncryptionContext_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<byte[]> encryptionContext) -
setEncryptionContext
public void setEncryptionContext(byte[] encryptionContext) -
encryptionAlgorithm
public EncryptRequest encryptionAlgorithm(EncryptRequest.EncryptionAlgorithmEnum encryptionAlgorithm) -
getEncryptionAlgorithm
The encryption algorithm this key must use. Validated against the key's actual cryptographic profile. Required for asymmetric keys. Symmetric keys use AES_256 when it is omitted.- Returns:
- encryptionAlgorithm
-
setEncryptionAlgorithm
-
plaintext
-
getPlaintext
@Nonnull public byte[] getPlaintext()The Base64-encoded plaintext data you wish to encrypt.- Returns:
- plaintext
-
setPlaintext
public void setPlaintext(byte[] plaintext) -
equals
Return true if this encrypt-request object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-