Class AsymmetricKeyPair<P extends AsymmetricPublicKey,S extends AsymmetricPrivateKey>
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.AsymmetricKeyPair<P,S>
-
public final class AsymmetricKeyPair<P extends AsymmetricPublicKey,S extends AsymmetricPrivateKey> extends java.lang.Object
Carrier class for a public key and its associated private key. This class will check the key pair on construction.
-
-
Constructor Summary
Constructors Constructor Description AsymmetricKeyPair(P publicKey, S privateKey)
Create a public/private key pair.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
getPrivateKey()
Return the private key of the pair.P
getPublicKey()
Return the public key of the pair.
-