File tree 1 file changed +7
-6
lines changed
src/main/java/com/amazonaws/encryptionsdk/jce
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ public class JceMasterKey extends MasterKey<JceMasterKey> {
44
44
private final JceKeyCipher jceKeyCipher_ ;
45
45
46
46
/**
47
- * Returns a {@code JceMasterKey} backed by {@code key} using {@code wrappingAlgorithm}. Currently
48
- * "{@code AES/GCM/NoPadding}" is the only supported value for {@code wrappingAlgorithm}.
47
+ * Returns a {@code JceMasterKey} backed by the symmetric key {@code key} using {@code
48
+ * wrappingAlgorithm}. Currently "{@code AES/GCM/NoPadding}" is the only supported value for
49
+ * symmetric {@code wrappingAlgorithm}s.
49
50
*
50
51
* @param key key used to wrap/unwrap (encrypt/decrypt) {@link DataKey}s
51
52
* @param provider
@@ -67,10 +68,10 @@ public static JceMasterKey getInstance(
67
68
}
68
69
69
70
/**
70
- * Returns a {@code JceMasterKey} backed by {@code unwrappingKey} and {@code wrappingKey} using
71
- * {@code wrappingAlgorithm}. Currently only RSA algorithms are supported for {@code
72
- * wrappingAlgorithm}. {@code wrappingAlgorithm}. If {@code unwrappingKey} is {@code null} then
73
- * the returned {@link JceMasterKey} can only be used for encryption.
71
+ * Returns a {@code JceMasterKey} backed by the asymmetric key pair {@code unwrappingKey} and
72
+ * {@code wrappingKey} using {@code wrappingAlgorithm}. Currently only RSA algorithms are
73
+ * supported for asymmetric {@code wrappingAlgorithm}s . If {@code unwrappingKey} is {@code null}
74
+ * then the returned {@link JceMasterKey} can only be used for encryption.
74
75
*
75
76
* @param wrappingKey key used to wrap (encrypt) {@link DataKey}s
76
77
* @param unwrappingKey (Optional) key used to unwrap (decrypt) {@link DataKey}s.
You can’t perform that action at this time.
0 commit comments