Package org.bouncycastle.jce.spec
Class IEKeySpec
- java.lang.Object
-
- org.bouncycastle.jce.spec.IEKeySpec
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Key
,java.security.spec.KeySpec
,IESKey
public class IEKeySpec extends java.lang.Object implements java.security.spec.KeySpec, IESKey
key pair for use with an integrated encryptor - together they provide what's required to generate the message.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IEKeySpec(java.security.PrivateKey privKey, java.security.PublicKey pubKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
return "IES"byte[]
getEncoded()
returns nulljava.lang.String
getFormat()
return nulljava.security.PrivateKey
getPrivate()
return the local private key.java.security.PublicKey
getPublic()
return the intended recipient's/sender's public key.
-
-
-
Method Detail
-
getPublic
public java.security.PublicKey getPublic()
return the intended recipient's/sender's public key.
-
getPrivate
public java.security.PrivateKey getPrivate()
return the local private key.- Specified by:
getPrivate
in interfaceIESKey
-
getAlgorithm
public java.lang.String getAlgorithm()
return "IES"- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
return null- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
returns null- Specified by:
getEncoded
in interfacejava.security.Key
-
-