iText 9.8.0 API
iText.Commons.Bouncycastle.Crypto.IAsymmetricCipherKeyPair Interface Reference

This interface represents the wrapper for AsymmetricCipherKeyPair that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations. More...

Inheritance diagram for iText.Commons.Bouncycastle.Crypto.IAsymmetricCipherKeyPair:
iText.Bouncycastle.Crypto.AsymmetricCipherKeyPairBC iText.Bouncycastlefips.Crypto.AsymmetricCipherKeyPairBCFips

Public Member Functions

IPrivateKey  GetPrivateKey ()
  Gets actual private key for the wrapped AsymmetricCipherKeyPair object. More...
 
IPublicKey  GetPublicKey ()
  Gets actual public key for the wrapped AsymmetricCipherKeyPair object. More...
 

Detailed Description

This interface represents the wrapper for AsymmetricCipherKeyPair that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.

Member Function Documentation

◆ GetPrivateKey()

IPrivateKey iText.Commons.Bouncycastle.Crypto.IAsymmetricCipherKeyPair.GetPrivateKey ( )

Gets actual private key for the wrapped AsymmetricCipherKeyPair object.

Returns
Wrapped private key.

Implemented in iText.Bouncycastle.Crypto.AsymmetricCipherKeyPairBC, and iText.Bouncycastlefips.Crypto.AsymmetricCipherKeyPairBCFips.

◆ GetPublicKey()

IPublicKey iText.Commons.Bouncycastle.Crypto.IAsymmetricCipherKeyPair.GetPublicKey ( )

Gets actual public key for the wrapped AsymmetricCipherKeyPair object.

Returns
Wrapped public key.

Implemented in iText.Bouncycastle.Crypto.AsymmetricCipherKeyPairBC, and iText.Bouncycastlefips.Crypto.AsymmetricCipherKeyPairBCFips.