Record Class InternalEnvelopePropertyEncryptionProfile
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.encryption.InternalEnvelopePropertyEncryptionProfile
- All Implemented Interfaces:
EnvelopePropertyEncryptionProfile, PropertyEncryptionProfile
public record InternalEnvelopePropertyEncryptionProfile(String name, BaseKeyEncapsulationService keyEncapsulationService, AsyncKeyEncapsulationService asyncKeyEncapsulationService, BaseEncapsulatedKeyRecordRepository keyRepository, AsyncEncapsulatedKeyRecordRepository asyncKeyRepository, CryptoContext cryptoContextRef, CacheConfig keyCacheConfigRef, CacheConfig keyAliasCacheConfigRef)
extends Record
implements EnvelopePropertyEncryptionProfile
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInternalEnvelopePropertyEncryptionProfile(String name, BaseKeyEncapsulationService keyEncapsulationService, AsyncKeyEncapsulationService asyncKeyEncapsulationService, BaseEncapsulatedKeyRecordRepository keyRepository, AsyncEncapsulatedKeyRecordRepository asyncKeyRepository, CryptoContext cryptoContextRef, CacheConfig keyCacheConfigRef, CacheConfig keyAliasCacheConfigRef) Creates an instance of aInternalEnvelopePropertyEncryptionProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theasyncKeyEncapsulationServicerecord component.Returns the value of theasyncKeyRepositoryrecord component.ReturnsCryptoContextif set.Returns the value of thecryptoContextRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyAliasCacheConfigRefrecord component.Returns the key alias indexCacheConfigif enabled.Returns the key cacheCacheConfigif enabled.Returns the value of thekeyCacheConfigRefrecord component.Returns the value of thekeyEncapsulationServicerecord component.Returns the value of thekeyRepositoryrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InternalEnvelopePropertyEncryptionProfile
public InternalEnvelopePropertyEncryptionProfile(String name, BaseKeyEncapsulationService keyEncapsulationService, AsyncKeyEncapsulationService asyncKeyEncapsulationService, BaseEncapsulatedKeyRecordRepository keyRepository, AsyncEncapsulatedKeyRecordRepository asyncKeyRepository, CryptoContext cryptoContextRef, CacheConfig keyCacheConfigRef, CacheConfig keyAliasCacheConfigRef) Creates an instance of aInternalEnvelopePropertyEncryptionProfilerecord class.- Parameters:
name- the value for thenamerecord componentkeyEncapsulationService- the value for thekeyEncapsulationServicerecord componentasyncKeyEncapsulationService- the value for theasyncKeyEncapsulationServicerecord componentkeyRepository- the value for thekeyRepositoryrecord componentasyncKeyRepository- the value for theasyncKeyRepositoryrecord componentcryptoContextRef- the value for thecryptoContextRefrecord componentkeyCacheConfigRef- the value for thekeyCacheConfigRefrecord componentkeyAliasCacheConfigRef- the value for thekeyAliasCacheConfigRefrecord component
-
-
Method Details
-
cryptoContext
Description copied from interface:EnvelopePropertyEncryptionProfileReturnsCryptoContextif set.If no context is configured, the Java runtime selects the AES-GCM provider and secure random number generator according to its configuration.
- Specified by:
cryptoContextin interfaceEnvelopePropertyEncryptionProfile- Returns:
- the crypto context
-
keyCacheConfig
Description copied from interface:EnvelopePropertyEncryptionProfileReturns the key cacheCacheConfigif enabled.The cache is enabled by default with a maximum size of 100 entries and a TTL of 15 minutes.
- Specified by:
keyCacheConfigin interfaceEnvelopePropertyEncryptionProfile- Returns:
- the cache config
-
keyAliasIndexConfig
Description copied from interface:EnvelopePropertyEncryptionProfileReturns the key alias indexCacheConfigif enabled.The cache is enabled by default with a maximum size of 100 entries and a TTL of 15 seconds.
- Specified by:
keyAliasIndexConfigin interfaceEnvelopePropertyEncryptionProfile- Returns:
- the cache config
-
toString
-
hashCode
-
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfacePropertyEncryptionProfile- Returns:
- the value of the
namerecord component
-
keyEncapsulationService
Returns the value of thekeyEncapsulationServicerecord component.- Specified by:
keyEncapsulationServicein interfaceEnvelopePropertyEncryptionProfile- Returns:
- the value of the
keyEncapsulationServicerecord component
-
asyncKeyEncapsulationService
Returns the value of theasyncKeyEncapsulationServicerecord component.- Returns:
- the value of the
asyncKeyEncapsulationServicerecord component
-
keyRepository
Returns the value of thekeyRepositoryrecord component.- Specified by:
keyRepositoryin interfaceEnvelopePropertyEncryptionProfile- Returns:
- the value of the
keyRepositoryrecord component
-
asyncKeyRepository
Returns the value of theasyncKeyRepositoryrecord component.- Returns:
- the value of the
asyncKeyRepositoryrecord component
-
cryptoContextRef
Returns the value of thecryptoContextRefrecord component.- Returns:
- the value of the
cryptoContextRefrecord component
-
keyCacheConfigRef
Returns the value of thekeyCacheConfigRefrecord component.- Returns:
- the value of the
keyCacheConfigRefrecord component
-
keyAliasCacheConfigRef
Returns the value of thekeyAliasCacheConfigRefrecord component.- Returns:
- the value of the
keyAliasCacheConfigRefrecord component
-