public enum RSASigningAlgorithm extends Enum<RSASigningAlgorithm> implements SecurityAlgorithm, SigningAlgorithm
| Enum Constant and Description |
|---|
SHA_256_WITH_RSA |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithmName() |
byte[] |
sign(Key key,
byte[] data) |
static RSASigningAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RSASigningAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
boolean |
verify(Key key,
String[] parts,
boolean urlSafe) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfverifypublic static final RSASigningAlgorithm SHA_256_WITH_RSA
public static RSASigningAlgorithm[] values()
for (RSASigningAlgorithm c : RSASigningAlgorithm.values()) System.out.println(c);
public static RSASigningAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAlgorithmName()
getAlgorithmName in interface SecurityAlgorithmpublic byte[] sign(Key key, byte[] data) throws NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
sign in interface SigningAlgorithmNoSuchProviderExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionSignatureExceptionpublic boolean verify(Key key, String[] parts, boolean urlSafe) throws IOException, NoSuchProviderException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
verify in interface SigningAlgorithmIOExceptionNoSuchProviderExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionSignatureExceptionCopyright © 2019. All rights reserved.