org.bouncycastle.jce.spec
Class IEKeySpec
java.lang.Object
org.bouncycastle.jce.spec.IEKeySpec
- Key, KeySpec, IESKey
public class IEKeySpec
extends java.lang.Object
key pair for use with an integrated encryptor - together
they provide what's required to generate the message.
IEKeySpec(PrivateKey privKey, PublicKey pubKey)
|
IEKeySpec
public IEKeySpec(PrivateKey privKey,
PublicKey pubKey)
privKey
- our private key.pubKey
- the public key of the sender/recipient.
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.
- getPrivate in interface IESKey
getPublic
public PublicKey getPublic()
return the intended recipient's/sender's public key.
- getPublic in interface IESKey