Class InternalPropertyEncryptionRequest
java.lang.Object
org.neo4j.driver.internal.encryption.InternalPropertyEncryptionRequest
- All Implemented Interfaces:
PropertyEncryptionRequest, PropertyEncryptionRequest.Builder.AADStep, PropertyEncryptionRequest.Builder.BuildStep, PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep, PropertyEncryptionRequest.Builder.ProfileStep, PropertyEncryptionRequest.Builder.ValueStep
public final class InternalPropertyEncryptionRequest
extends Object
implements PropertyEncryptionRequest.Builder.ProfileStep, PropertyEncryptionRequest.Builder.ValueStep, PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep, PropertyEncryptionRequest.Builder.AADStep, PropertyEncryptionRequest.Builder.BuildStep, PropertyEncryptionRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface PropertyEncryptionRequest
PropertyEncryptionRequest.Builder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a newPropertyEncryptionRequestinstance.Sets the value to encrypt.usingKeyAlias(String keyAlias) Sets the key alias to use.usingKeyId(String keyId) Sets the key id to use.usingProfile(String profileName) Sets the profile name to use.protected voidprotected voidvalidateAad(Value value) Adds the supplied value as AAD for encryption request.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyEncryptionRequest.Builder.AADStep
withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAADModifier 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.Methods inherited from interface PropertyEncryptionRequest.Builder.ValueStep
fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValue, fromValueModifier and TypeMethodDescriptionfromValue(boolean value) Sets the value to encrypt.fromValue(boolean... values) Sets the values to encrypt.fromValue(byte... values) Sets the values to encrypt.fromValue(char value) Sets the value to encrypt.fromValue(char... values) Sets the values to encrypt.fromValue(double value) Sets the value to encrypt.fromValue(double... values) Sets the values to encrypt.fromValue(float... values) Sets the values to encrypt.fromValue(int value) Sets the value to encrypt.fromValue(int... values) Sets the values to encrypt.fromValue(long value) Sets the value to encrypt.fromValue(long... values) Sets the values to encrypt.fromValue(short... values) Sets the values to encrypt.Sets the value to encrypt.Sets the values to encrypt.Sets the value to encrypt.Sets the value to encrypt.fromValue(LocalDateTime value) Sets the value to encrypt.Sets the value to encrypt.fromValue(OffsetDateTime value) Sets the value to encrypt.fromValue(OffsetTime value) Sets the value to encrypt.Sets the value to encrypt.fromValue(ZonedDateTime value) Sets the value to encrypt.Sets the value to encrypt.fromValue(IsoDuration value) Sets the value to encrypt.Sets the value to encrypt.Sets the value to encrypt.
-
Field Details
-
TYPE_SYSTEM
-
-
Constructor Details
-
InternalPropertyEncryptionRequest
public InternalPropertyEncryptionRequest()
-
-
Method Details
-
usingProfile
public PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep usingProfile(String profileName) Description copied from interface:PropertyEncryptionRequest.Builder.ProfileStepSets the profile name to use.- Specified by:
usingProfilein interfacePropertyEncryptionRequest.Builder.ProfileStep- Parameters:
profileName- the profile name, must not be null- Returns:
- the next builder step
-
fromValue
Description copied from interface:PropertyEncryptionRequest.Builder.ValueStepSets the value to encrypt.Note that the value MUST be of a supported Neo4j Property Type.
- Specified by:
fromValuein interfacePropertyEncryptionRequest.Builder.ValueStep- Parameters:
value- the value to encrypt- Returns:
- the next builder step
-
usingKeyId
Description copied from interface:PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStepSets the key id to use.- Specified by:
usingKeyIdin interfacePropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep- Parameters:
keyId- the key id, must not be null- Returns:
- the next builder step
-
usingKeyAlias
Description copied from interface:PropertyEncryptionRequest.Builder.EncryptionKeyReferenceStepSets the key alias to use.- Specified by:
usingKeyAliasin interfacePropertyEncryptionRequest.Builder.EncryptionKeyReferenceStep- Parameters:
keyAlias- the key alias, must not be null- Returns:
- the next builder step
-
withAAD
Description copied from interface:PropertyEncryptionRequest.Builder.AADStepAdds 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()
- Specified by:
withAADin interfacePropertyEncryptionRequest.Builder.AADStep- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
build
Description copied from interface:PropertyEncryptionRequest.Builder.BuildStepBuilds and returns a newPropertyEncryptionRequestinstance.- Specified by:
buildin interfacePropertyEncryptionRequest.Builder.BuildStep- Returns:
- the new request instance
-
validate
-
validateAad
-