You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The javadoc and the implementation of this method don't match, I expect a InvalidPublicKeyException if the key type is not RSA, but I instead get null:
/**
* Returns a {@link PublicKey} if the {@code 'alg'} is {@code 'RSA'}
* @return a public key
* @throws InvalidPublicKeyException if the key cannot be built or the key type is not RSA
*/
@SuppressWarnings("WeakerAccess")
public PublicKey getPublicKey() throws InvalidPublicKeyException {
if (!PUBLIC_KEY_ALGORITHM.equalsIgnoreCase(type)) {
return null;
}
The text was updated successfully, but these errors were encountered:
The javadoc and the implementation of this method don't match, I expect a InvalidPublicKeyException if the key type is not RSA, but I instead get null:
The text was updated successfully, but these errors were encountered: