Interface PropertyEncryptionRequest.Builder.AADStep
- All Superinterfaces:
PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep, PropertyEncryptionRequest.Builder.ProfileStep
- All Known Implementing Classes:
InternalPropertyEncryptionRequest
- Enclosing interface:
PropertyEncryptionRequest.Builder
public static interface PropertyEncryptionRequest.Builder.AADStep
extends PropertyEncryptionRequest.Builder.ProfileStep
A builder step for setting AAD.
- Since:
- 6.3.0
-
Method Summary
Modifier and TypeMethodDescriptionwithAAD(boolean aad) Adds the supplied value as AAD for encryption request.withAAD(byte[] aad) Adds the supplied value as AAD for encryption request.withAAD(double aad) Adds the supplied value as AAD for encryption request.withAAD(int aad) Adds the supplied value as AAD for encryption request.withAAD(long aad) Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.withAAD(OffsetTime aad) Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.Adds the supplied value as AAD for encryption request.Methods inherited from interface PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep
usingKeyAlias, usingKeyIdModifier and TypeMethodDescriptionusingKeyAlias(String keyAlias) Sets the key alias to use.usingKeyId(String keyId) Sets the key id to use.Methods inherited from interface PropertyEncryptionRequest.Builder.ProfileStep
usingProfile
-
Method Details
-
withAAD
Adds the supplied value as AAD for encryption request.Note that only a subset of types is supported for AAD, they are listed below:
TypeSystem.BOOLEAN()TypeSystem.BYTES()TypeSystem.STRING()- it is strongly recommended to normalize the value, for example usingNormalizer.Form.NFC, before passing it to the driverTypeSystem.INTEGER()TypeSystem.POINT()TypeSystem.DATE()TypeSystem.TIME()TypeSystem.LOCAL_TIME()TypeSystem.UUID()
- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.It is strongly recommended to normalize the value, for example using
Normalizer.Form.NFC, before passing it to the driver.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withAAD
Adds the supplied value as AAD for encryption request.- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-