Class InternalPropertyDecryptionRequest
java.lang.Object
org.neo4j.driver.internal.encryption.InternalPropertyDecryptionRequest
- All Implemented Interfaces:
PropertyDecryptionRequest, PropertyDecryptionRequest.Builder.AADStep, PropertyDecryptionRequest.Builder.BuildStep, PropertyDecryptionRequest.Builder.ValueStep
public final class InternalPropertyDecryptionRequest
extends Object
implements PropertyDecryptionRequest.Builder.ValueStep, PropertyDecryptionRequest.Builder.AADStep, PropertyDecryptionRequest.Builder.BuildStep, PropertyDecryptionRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface PropertyDecryptionRequest
PropertyDecryptionRequest.Builder -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a newPropertyDecryptionRequestinstance.fromValue(byte[] value) Sets the value to decrypt.protected voidprotected voidvalidateAad(Value value) Adds the supplied value as AAD for decryption request.Enables using the AAD configuration recorded in the encrypted value metadata.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyDecryptionRequest.Builder.AADStep
withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAAD, withAADModifier and TypeMethodDescriptionwithAAD(boolean aad) Adds the supplied value as AAD for decryption request.withAAD(byte[] aad) Adds the supplied value as AAD for decryption request.withAAD(double aad) Adds the supplied value as AAD for decryption request.withAAD(int aad) Adds the supplied value as AAD for decryption request.withAAD(long aad) Adds the supplied value as AAD for decryption request.Adds the supplied value as AAD for decryption request.Adds the supplied value as AAD for decryption request.Adds the supplied value as AAD for decryption request.withAAD(OffsetTime aad) Adds the supplied value as AAD for decryption request.Adds the supplied value as AAD for decryption request.Adds the supplied value as AAD for decryption request.
-
Field Details
-
TYPE_SYSTEM
-
-
Constructor Details
-
InternalPropertyDecryptionRequest
public InternalPropertyDecryptionRequest()
-
-
Method Details
-
fromValue
Description copied from interface:PropertyDecryptionRequest.Builder.ValueStepSets the value to decrypt.- Specified by:
fromValuein interfacePropertyDecryptionRequest.Builder.ValueStep- Parameters:
value- the value to decrypt- Returns:
- the next builder step
-
withAAD
Description copied from interface:PropertyDecryptionRequest.Builder.AADStepAdds the supplied value as AAD for decryption request.Note that only a subset of types is supported for AAD, they are listed below:
TypeSystem.BOOLEAN()TypeSystem.BYTES()TypeSystem.STRING()- the value must use the same normalization as the value supplied during encryption if it was normalizedTypeSystem.INTEGER()TypeSystem.POINT()TypeSystem.DATE()TypeSystem.TIME()TypeSystem.LOCAL_TIME()TypeSystem.UUID()
- Specified by:
withAADin interfacePropertyDecryptionRequest.Builder.AADStep- Parameters:
aad- the AAD value, must not be null- Returns:
- the next builder step
-
withoutExternalAAD
Description copied from interface:PropertyDecryptionRequest.Builder.AADStepEnables using the AAD configuration recorded in the encrypted value metadata.If AAD was used during encryption, the persisted AAD is used for decryption. If no AAD was used during encryption, no effective AAD is used during decryption.
This option does not bind the encrypted value to an independently supplied external context. If AAD needs to bind the encrypted value to an external context, use an explicit AAD value using
PropertyDecryptionRequest.Builder.AADStep.withAAD(Value)or an overloaded variant of it.- Specified by:
withoutExternalAADin interfacePropertyDecryptionRequest.Builder.AADStep- Returns:
- the next builder step
-
build
Description copied from interface:PropertyDecryptionRequest.Builder.BuildStepBuilds and returns a newPropertyDecryptionRequestinstance.- Specified by:
buildin interfacePropertyDecryptionRequest.Builder.BuildStep- Returns:
- the new request instance
-
validate
-
validateAad
-