Package org.bouncycastle.jce.spec
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.Key
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description IEKeySpec(PrivateKey privKey, PublicKey pubKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
return "IES"byte[]
getEncoded()
returns nullString
getFormat()
return nullPrivateKey
getPrivate()
return the local private key.PublicKey
getPublic()
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
-
getPublic
public PublicKey getPublic()
return the intended recipient's/sender's public key.
-
getPrivate
public PrivateKey getPrivate()
return the local private key.- Specified by:
getPrivate
in interfaceIESKey
-
getAlgorithm
public String getAlgorithm()
return "IES"- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
returns null- Specified by:
getEncoded
in interfaceKey
-
-