Serializable, Comparable<Rsa>public enum Rsa extends Enum<Rsa>
| Modifier and Type | Method | Description |
|---|---|---|
static PrivateKey |
privateKeyFromPkcs1(byte[] pkcs1) |
Returns a private key constructed from the given DER bytes in PKCS#1 format.
|
static PrivateKey |
privateKeyFromPkcs8(byte[] pkcs8) |
Returns a private key constructed from the given DER bytes in PKCS#8 format.
|
static PublicKey |
publicKeyFrom(byte[] derBytes) |
Returns a public key constructed from the given DER bytes.
|
static Rsa |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Rsa[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Rsa[] values()
for (Rsa c : Rsa.values()) System.out.println(c);
public static Rsa 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 static PrivateKey privateKeyFromPkcs8(byte[] pkcs8) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic static PrivateKey privateKeyFromPkcs1(byte[] pkcs1) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic static PublicKey publicKeyFrom(byte[] derBytes) throws InvalidKeySpecException
InvalidKeySpecExceptionCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.