You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.




org.mozilla.jss.crypto
Class PrivateKey.Type

java.lang.Object
  extended by org.mozilla.jss.crypto.PrivateKey.Type
Enclosing interface:
PrivateKey

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


Field Summary
static OBJECT_IDENTIFIER DH_OID
           
static PrivateKey.Type DiffieHellman
           
static PrivateKey.Type DSA
           
static PrivateKey.Type EC
           
static PrivateKey.Type RSA
           
 
Method Summary
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".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
toString in class java.lang.Object

toOID

public OBJECT_IDENTIFIER toOID()

getPKCS11Type

public int getPKCS11Type()