Package org.mozilla.jss.crypto
Class PrivateKey.Type
- java.lang.Object
-
- org.mozilla.jss.crypto.PrivateKey.Type
-
- Enclosing interface:
- PrivateKey
public static final class PrivateKey.Type extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static OBJECT_IDENTIFIERDH_OIDstatic PrivateKey.TypeDiffieHellmanstatic PrivateKey.TypeDSAstatic PrivateKey.TypeECstatic PrivateKey.TypeRSA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivateKey.TypefromOID(OBJECT_IDENTIFIER oid)intgetPKCS11Type()OBJECT_IDENTIFIERtoOID()java.lang.StringtoString()Returns a string representation of the algorithm, such as "RSA", "DSA", or "EC".
-
-
-
Field Detail
-
DH_OID
public static OBJECT_IDENTIFIER DH_OID
-
RSA
public static final PrivateKey.Type RSA
-
DSA
public static final PrivateKey.Type DSA
-
EC
public static final PrivateKey.Type EC
-
DiffieHellman
public static final PrivateKey.Type DiffieHellman
-
-
Method Detail
-
fromOID
public static PrivateKey.Type fromOID(OBJECT_IDENTIFIER oid) throws java.security.NoSuchAlgorithmException
- Throws:
java.security.NoSuchAlgorithmException
-
toString
public java.lang.String toString()
Returns a string representation of the algorithm, such as "RSA", "DSA", or "EC".- Overrides:
toStringin classjava.lang.Object
-
toOID
public OBJECT_IDENTIFIER toOID()
-
getPKCS11Type
public int getPKCS11Type()
-
-