Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

edu.virtualschool.jco.JCOKeyPair Class Reference

Collaboration diagram for edu.virtualschool.jco.JCOKeyPair:

Collaboration graph
[legend]
List of all members.

Detailed Description

For generating complimentary JCO public/private key pairs.
Author:
bcox
See also:
JCOPublicKey

JCOPrivateKey

Definition at line 18 of file JCOKeyPair.java.

Public Member Functions

 JCOKeyPair (JCOPublicKey pub, JCOPrivateKey prv)
 JCOKeyPair ()
 JCOKeyPair (int length)
final JCOPublicKey getPublic ()
final JCOPrivateKey getPrivate ()

Package Functions

 JCOKeyPair (int keyLengthInBytes, int certainty)

Package Attributes

final JCOPublicKey publicKey
final JCOPrivateKey privateKey

Static Package Attributes

final int DEFAULT_KEY_LENGTH = 2048/8
final int DEFAULT_KEY_CERTAINTY = 25
final BigInteger publicExponent = BigInteger.valueOf(0x11)


Constructor & Destructor Documentation

edu.virtualschool.jco.JCOKeyPair.JCOKeyPair  ) 
 

Construct a new keypair with the default length of 256 bytes.

Definition at line 35 of file JCOKeyPair.java.

00036   {
00037     this(DEFAULT_KEY_LENGTH, DEFAULT_KEY_CERTAINTY);
00038   }

edu.virtualschool.jco.JCOKeyPair.JCOKeyPair int  length  ) 
 

Construct a key pair with the specified length in bytes. This length must be longer than the largest item to be encrypted, tyically a secret key.

Parameters:
length 

Definition at line 45 of file JCOKeyPair.java.

00046   {
00047     this(length, DEFAULT_KEY_CERTAINTY);
00048   }


The documentation for this class was generated from the following file: