Package net.i2p.crypto
Class KeyPair
- java.lang.Object
-
- net.i2p.crypto.KeyPair
-
- Direct Known Subclasses:
Elg2KeyPair
public class KeyPair extends Object
Same as java.security.KeyPair, but with I2P keys- Since:
- 0.9.38
-
-
Constructor Summary
Constructors Constructor Description KeyPair(PublicKey publicKey, PrivateKey privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateKey
getPrivate()
PublicKey
getPublic()
-
-
-
Constructor Detail
-
KeyPair
public KeyPair(PublicKey publicKey, PrivateKey privateKey)
- Parameters:
publicKey
- non-null, same EncType as privateKeyprivateKey
- non-null, same EncType as publicKey
-
-
Method Detail
-
getPublic
public PublicKey getPublic()
-
getPrivate
public PrivateKey getPrivate()
-
-