Module spring.data.mongodb
Interface EncryptionKey
public interface EncryptionKey
The
EncryptionKey represents a Data Encryption Key reference that can be either direct via the
key id or its Key Alternative Name.- Since:
- 4.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionKeykeyAltName(String keyAltName) Create a newEncryptionKeythat uses an Key Alternative Name for reference.static EncryptionKeykeyId(org.bson.BsonBinary key) Create a newEncryptionKeythat uses the keys id for reference.type()value()
-
Method Details
-
keyId
Create a newEncryptionKeythat uses the keys id for reference.- Parameters:
key- must not be null.- Returns:
- new instance of
KeyId.
-
keyAltName
Create a newEncryptionKeythat uses an Key Alternative Name for reference.- Parameters:
keyAltName- must not be null or empty.- Returns:
- new instance of
KeyAltName.
-
value
Object value()- Returns:
- the value that allows to reference a specific key.
-
type
EncryptionKey.Type type()- Returns:
- the
EncryptionKey.Typeof reference.
-