Class IEKeySpec

java.lang.Object
org.bouncycastle.jce.spec.IEKeySpec
All Implemented Interfaces:
Serializable, Key, KeySpec, IESKey

public class IEKeySpec extends Object implements KeySpec, IESKey
key pair for use with an integrated encryptor - together they provide what's required to generate the message.
See Also:
  • Constructor Details

    • IEKeySpec

      public IEKeySpec(PrivateKey privKey, PublicKey pubKey)
      Parameters:
      privKey - our private key.
      pubKey - the public key of the sender/recipient.
  • Method Details

    • getPublic

      public PublicKey getPublic()
      return the intended recipient's/sender's public key.
      Specified by:
      getPublic in interface IESKey
    • getPrivate

      public PrivateKey getPrivate()
      return the local private key.
      Specified by:
      getPrivate in interface IESKey
    • getAlgorithm

      public String getAlgorithm()
      return "IES"
      Specified by:
      getAlgorithm in interface Key
    • getFormat

      public String getFormat()
      return null
      Specified by:
      getFormat in interface Key
    • getEncoded

      public byte[] getEncoded()
      returns null
      Specified by:
      getEncoded in interface Key