org.mozilla.jss.crypto

Class PrivateKey.Type

public static final class PrivateKey.Type extends Object

Field Summary
static OBJECT_IDENTIFIERDH_OID
static PrivateKey.TypeDiffieHellman
static PrivateKey.TypeDSA
static PrivateKey.TypeEC
static PrivateKey.TypeRSA
Method Summary
static PrivateKey.TypefromOID(OBJECT_IDENTIFIER oid)
intgetPKCS11Type()
OBJECT_IDENTIFIERtoOID()
StringtoString()
Returns a string representation of the algorithm, such as "RSA", "DSA", or "EC".

Field Detail

DH_OID

public static OBJECT_IDENTIFIER DH_OID

DiffieHellman

public static final PrivateKey.Type DiffieHellman

DSA

public static final PrivateKey.Type DSA

EC

public static final PrivateKey.Type EC

RSA

public static final PrivateKey.Type RSA

Method Detail

fromOID

public static PrivateKey.Type fromOID(OBJECT_IDENTIFIER oid)

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".