org.mozilla.jss.crypto

Class PrivateKey.Type

Enclosing Class:
PrivateKey

public static final class PrivateKey.Type
extends java.lang.Object

Field Summary

static OBJECT_IDENTIFIER
DH_OID
static PrivateKey.Type
DSA
static PrivateKey.Type
DiffieHellman
static PrivateKey.Type
EC
static PrivateKey.Type
RSA

Method Summary

static PrivateKey.Type
fromOID(OBJECT_IDENTIFIER oid)
int
getPKCS11Type()
OBJECT_IDENTIFIER
toOID()
String
toString()
Returns a string representation of the algorithm, such as "RSA", "DSA", or "EC".

Field Details

DH_OID

public static OBJECT_IDENTIFIER DH_OID

DSA

public static final PrivateKey.Type DSA

DiffieHellman

public static final PrivateKey.Type DiffieHellman

EC

public static final PrivateKey.Type EC

RSA

public static final PrivateKey.Type RSA

Method Details

fromOID

public static PrivateKey.Type fromOID(OBJECT_IDENTIFIER oid)
            throws NoSuchAlgorithmException

getPKCS11Type

public int getPKCS11Type()

toOID

public OBJECT_IDENTIFIER toOID()

toString

public String toString()
Returns a string representation of the algorithm, such as "RSA", "DSA", or "EC".