public static enum OpenSSLCompat.PublicKeyAlgorithm extends java.lang.Enum<OpenSSLCompat.PublicKeyAlgorithm>
Modifier and Type | Method and Description |
---|---|
java.security.PublicKey |
generatePublicKey(java.security.spec.KeySpec keySpec) |
abstract byte[] |
sign(java.security.spec.KeySpec keySpec,
ASN1Object hash,
byte[] digest) |
static OpenSSLCompat.PublicKeyAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpenSSLCompat.PublicKeyAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static boolean |
verify(java.security.cert.Certificate cert,
ASN1Object hash,
byte[] digest,
byte[] signature) |
boolean |
verify(java.security.spec.KeySpec keySpec,
ASN1Object hash,
byte[] digest,
byte[] signature) |
abstract boolean |
verify(java.security.PublicKey publicKey,
ASN1Object hash,
byte[] digest,
byte[] signature) |
public static final OpenSSLCompat.PublicKeyAlgorithm RSA
public static final OpenSSLCompat.PublicKeyAlgorithm DSA
public static final OpenSSLCompat.PublicKeyAlgorithm EC
public static OpenSSLCompat.PublicKeyAlgorithm[] values()
for (OpenSSLCompat.PublicKeyAlgorithm c : OpenSSLCompat.PublicKeyAlgorithm.values()) System.out.println(c);
public static OpenSSLCompat.PublicKeyAlgorithm 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 abstract byte[] sign(java.security.spec.KeySpec keySpec, ASN1Object hash, byte[] digest) throws java.lang.Exception
java.lang.Exception
public abstract boolean verify(java.security.PublicKey publicKey, ASN1Object hash, byte[] digest, byte[] signature) throws java.lang.Exception
java.lang.Exception
public java.security.PublicKey generatePublicKey(java.security.spec.KeySpec keySpec) throws java.lang.Exception
java.lang.Exception
public boolean verify(java.security.spec.KeySpec keySpec, ASN1Object hash, byte[] digest, byte[] signature) throws java.lang.Exception
java.lang.Exception
public static boolean verify(java.security.cert.Certificate cert, ASN1Object hash, byte[] digest, byte[] signature) throws java.lang.Exception
java.lang.Exception