
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) |
|
|
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 }
|
|
|
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.
Definition at line 45 of file JCOKeyPair.java.
00046 {
00047 this(length, DEFAULT_KEY_CERTAINTY);
00048 }
|