Class DefaultKeyEntity
- java.lang.Object
-
- io.axoniq.dataprotection.cryptoengine.jpa.DefaultKeyEntity
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultKeyEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKeyId()Read accessor to thekeyId.StringgetSecretKeyBase64()Read accessor tosecretKeyBase64.voidsetKeyId(String keyId)Write accessor to thekeyId.voidsetSecretKeyBase64(String secretKeyBase64)Write accessor tosecretKeyBase64.
-
-
-
Method Detail
-
getKeyId
public String getKeyId()
Read accessor to thekeyId. This is the primary key of the entity. Has aIdannotation identifying it as primary key and aColumnannotation mapping it to a column namedkey_id
-
setKeyId
public void setKeyId(String keyId)
Description copied from interface:KeyEntityWrite accessor to thekeyId. This is the primary key of the entity.
-
getSecretKeyBase64
public String getSecretKeyBase64()
Read accessor tosecretKeyBase64. This is a representation of the secret key bytes in Base64-form. Has aColumnannotation mapping it to a column namedsecret_key- Specified by:
getSecretKeyBase64in interfaceKeyEntity- Returns:
- the current value
-
setSecretKeyBase64
public void setSecretKeyBase64(String secretKeyBase64)
Description copied from interface:KeyEntityWrite accessor tosecretKeyBase64. This is a representation of the secret key bytes in Base64-form.- Specified by:
setSecretKeyBase64in interfaceKeyEntity- Parameters:
secretKeyBase64- the new value
-
-