javacard.security
Class KeyPair

java.lang.Object
  |
  +--javacard.security.KeyPair

public final synchronized class KeyPair
extends java.lang.Object


Field Summary
static byte ALG_DSA
           
static byte ALG_EC_F2M
           
static byte ALG_EC_FP
           
static byte ALG_RSA
           
static byte ALG_RSA_CRT
           
private  PrivateKey privateKey
           
private  PublicKey publicKey
           
 
Constructor Summary
KeyPair(byte, short)
           
KeyPair(PublicKey, PrivateKey)
           
 
Method Summary
 void genKeyPair()
           
 PrivateKey getPrivate()
           
 PublicKey getPublic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALG_RSA

public static final byte ALG_RSA
See Also:
Constant Field Values

ALG_RSA_CRT

public static final byte ALG_RSA_CRT
See Also:
Constant Field Values

ALG_DSA

public static final byte ALG_DSA
See Also:
Constant Field Values

ALG_EC_F2M

public static final byte ALG_EC_F2M
See Also:
Constant Field Values

ALG_EC_FP

public static final byte ALG_EC_FP
See Also:
Constant Field Values

privateKey

private PrivateKey privateKey

publicKey

private PublicKey publicKey
Constructor Detail

KeyPair

public KeyPair(byte,
               short)
        throws CryptoException

KeyPair

public KeyPair(PublicKey,
               PrivateKey)
        throws CryptoException
Method Detail

genKeyPair

public final void genKeyPair()
                      throws CryptoException
CryptoException

getPublic

public PublicKey getPublic()

getPrivate

public PrivateKey getPrivate()