public static final class PrivateKey.Type
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static OBJECT_IDENTIFIER |
DH_OID |
static PrivateKey.Type |
DiffieHellman |
static PrivateKey.Type |
DSA |
static PrivateKey.Type |
EC |
static PrivateKey.Type |
RSA |
Modifier and Type | Method and Description |
---|---|
static PrivateKey.Type |
fromOID(OBJECT_IDENTIFIER oid) |
int |
getPKCS11Type() |
OBJECT_IDENTIFIER |
toOID() |
java.lang.String |
toString()
Returns a string representation of the algorithm, such as
"RSA", "DSA", or "EC".
|
public static OBJECT_IDENTIFIER DH_OID
public static final PrivateKey.Type RSA
public static final PrivateKey.Type DSA
public static final PrivateKey.Type EC
public static final PrivateKey.Type DiffieHellman
public static PrivateKey.Type fromOID(OBJECT_IDENTIFIER oid) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public java.lang.String toString()
toString
in class java.lang.Object
public OBJECT_IDENTIFIER toOID()
public int getPKCS11Type()