public static interface EncryptedData.Encrypter
| Modifier and Type | Method and Description |
|---|---|
EncryptedData |
encrypt(@NotEmpty java.lang.String keyId,
@NotEmpty java.lang.String dataType,
@NotEmpty java.lang.String contentType,
@NotEmpty byte[] data)
Encrypts some data using a dedicated key.
|
EncryptedData encrypt(@NotEmpty @NotEmpty java.lang.String keyId, @NotEmpty @NotEmpty java.lang.String dataType, @NotEmpty @NotEmpty java.lang.String contentType, @NotEmpty @NotEmpty byte[] data) throws EncryptionKeyIdUnknownException
keyId and the data byte array. The rest of the
arguments is only stored for information purposes in the resulting data structure.keyId - Unique identifier of a key to use.dataType - Unique type of the data like "UserPersonalData" or even a fully qualified class name.contentType - Content type like "application/json; encoding=UTF-8; version=1".data - Data to encrypt.EncryptionKeyIdUnknownException - The given key identifier is unknown.Copyright © 2019 fuin.org (Germany). All Rights Reserved.