| Modifier and Type | Method and Description |
|---|---|
static java.security.PrivateKey |
privateKeyFromPKCS8(byte[] pkcs8)
Returns a private key constructed from the given DER bytes in PKCS#8 format.
|
static java.security.PublicKey |
publicKeyFrom(byte[] derBytes)
Returns a public key constructed from the given DER bytes.
|
static EC |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EC[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static EC[] values()
for (EC c : EC.values()) System.out.println(c);
public static EC valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.security.PrivateKey privateKeyFromPKCS8(byte[] pkcs8)
throws java.security.spec.InvalidKeySpecException
pkcs8 - DER bytes in PKCS#8 formatjava.security.spec.InvalidKeySpecException - if the DER bytes cannot be converted to a private keypublic static java.security.PublicKey publicKeyFrom(byte[] derBytes)
throws java.security.spec.InvalidKeySpecException
derBytes - DER bytesjava.security.spec.InvalidKeySpecException - if the DER bytes cannot be converted to a public keyCopyright © 2014-2020 Tomitribe Corporation. All Rights Reserved.