org.bouncycastle.jce.spec

Class IEKeySpec

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.
Constructor Summary
IEKeySpec(PrivateKey privKey, PublicKey pubKey)
Method Summary
StringgetAlgorithm()
return "IES"
byte[]getEncoded()
returns null
StringgetFormat()
return null
PrivateKeygetPrivate()
return the local private key.
PublicKeygetPublic()
return the intended recipient's/sender's public key.

Constructor Detail

IEKeySpec

public IEKeySpec(PrivateKey privKey, PublicKey pubKey)

Parameters: privKey our private key. pubKey the public key of the sender/recipient.

Method Detail

getAlgorithm

public String getAlgorithm()
return "IES"

getEncoded

public byte[] getEncoded()
returns null

getFormat

public String getFormat()
return null

getPrivate

public PrivateKey getPrivate()
return the local private key.

getPublic

public PublicKey getPublic()
return the intended recipient's/sender's public key.