Skip to content

Commit 24f2514

Browse files
committed
RM-3063: add deprecated tags to enc/dec key material methods
1 parent 10a140a commit 24f2514

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

cdoc2-cli/src/main/java/ee/cyber/cdoc2/cli/commands/CDocCreateCmd.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ public Void call() throws Exception {
105105
Arrays.toString(inputFiles));
106106
}
107107

108-
109-
110-
111108
CDocBuilder cDocBuilder = new CDocBuilder()
112109
.withPayloadFiles(Arrays.asList(inputFiles));
113110

@@ -116,7 +113,6 @@ public Void call() throws Exception {
116113
cDocBuilder.withServerProperties(p);
117114
}
118115

119-
120116
List<EncryptionKeyMaterial> symmetricKMs =
121117
SymmetricKeyUtil.getEncryptionKeyMaterialFromFormattedSecrets(recipient.secrets);
122118

cdoc2-lib/src/main/java/ee/cyber/cdoc2/crypto/keymaterial/DecryptionKeyMaterial.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public interface DecryptionKeyMaterial {
3030
EncryptionKeyOrigin getKeyOrigin();
3131

3232
/**
33-
* Deprecated decryption key. Will be removed later.
3433
* Creates decryption key material with secret key.
34+
* @deprecated decryption key
3535
* @param secretKey secret key
3636
* @param label key label
3737
* @return DecryptionKeyMaterial key material required for decryption
3838
*/
39-
@Deprecated
39+
@Deprecated(forRemoval = true)
4040
static DecryptionKeyMaterial fromSecretKey(SecretKey secretKey, String label) {
4141
return new SecretDecryptionKeyMaterial(secretKey, label);
4242
}

cdoc2-lib/src/main/java/ee/cyber/cdoc2/crypto/keymaterial/EncryptionKeyMaterial.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ public interface EncryptionKeyMaterial {
4141
* For backward compatibility. This method doesn't support correct keylabel generation as there
4242
* is no info, where pubKey is coming from (pubkey, cert, LDAP)
4343
* Use {@link #fromPublicKey(PublicKey, KeyLabelParams)} instead.
44-
* @param pubKey
45-
* @param keyLabel
46-
* @return
44+
* @deprecated ecryption key
45+
* @param pubKey public key
46+
* @param keyLabel key label
47+
* @return EncryptionKeyMaterial
4748
*/
48-
@Deprecated
49+
@Deprecated(forRemoval = true)
4950
static EncryptionKeyMaterial fromPublicKey(
5051
PublicKey pubKey,
5152
String keyLabel

0 commit comments

Comments
 (0)