At the moment the moment both classes take a byte[] as argument:
public PublicKey(byte[] keyMaterial, Version version) {
super(keyMaterial, version);
}
It is easier from a user perspective to change this to:
public PublicKey(javax.security.PublicKey, Version version) {
super(keyMaterial, version);
}
this way the API is not responsible for translations, we take a valid key which the user needs to obtain from a byte[], PEM encoded string etc.
At the moment the moment both classes take a
byte[]as argument:It is easier from a user perspective to change this to:
this way the API is not responsible for translations, we take a valid key which the user needs to obtain from a
byte[], PEM encoded string etc.