org.mozilla.jss.crypto
Class KeyPairAlgorithm

java.lang.Object
  |
  +--org.mozilla.jss.crypto.Algorithm
        |
        +--org.mozilla.jss.crypto.KeyPairAlgorithm

public class KeyPairAlgorithm
extends Algorithm

Algorithms that can be used for keypair generation.


Field Summary
static KeyPairAlgorithm DSA
           
static Algorithm DSAFamily
           
static KeyPairAlgorithm RSA
           
static Algorithm RSAFamily
           
 
Method Summary
 Algorithm getAlgFamily()
          Returns the algorithm family for a given key pair generation algorithm.
 
Methods inherited from class org.mozilla.jss.crypto.Algorithm
getParameterClass, toOID, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RSAFamily

public static final Algorithm RSAFamily

DSAFamily

public static final Algorithm DSAFamily

RSA

public static final KeyPairAlgorithm RSA

DSA

public static final KeyPairAlgorithm DSA
Method Detail

getAlgFamily

public Algorithm getAlgFamily()
Returns the algorithm family for a given key pair generation algorithm. If a token supports a family and is writable, we can do keypair gen on the token even if it doesn't support the keypair gen algorithm. We do this by doing the keypair gen on the internal module and then moving the key out to the other token.