Skip to content

Commit dac709e

Browse files
committed
Merge branch 'RM-4153_bug_keylabel_enabled' into 'master'
RM-4153: allow disabling of machine-readable-format for password and secret See merge request cdoc2/cdoc2-java-ref-impl!73
2 parents a221252 + 92e5169 commit dac709e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public EncryptionKeyMaterialCollectionBuilder fromEId(String[] identificationCod
111111
public EncryptionKeyMaterialCollectionBuilder fromPassword(@Nullable LabeledPassword labeledPassword) {
112112
if (labeledPassword != null) {
113113
recipients.add(EncryptionKeyMaterial.fromPassword(labeledPassword.getPassword(),
114-
labeledPassword.getKeyLabelParams()));
114+
labeledPassword.getLabel()));
115115
}
116116
return this;
117117
}
@@ -127,7 +127,7 @@ public EncryptionKeyMaterialCollectionBuilder fromSecrets(@Nullable LabeledSecre
127127
.map(labeledSecret ->
128128
EncryptionKeyMaterial.fromSecret(
129129
labeledSecret.getSecretKey(),
130-
labeledSecret.getKeyLabelParams()
130+
labeledSecret.getLabel()
131131
)
132132
)
133133
.forEach(encryptionKeyMaterial -> recipients.add(encryptionKeyMaterial));

0 commit comments

Comments
 (0)