Top Description Fields Constructors Methods
org.bouncycastle.jce.spec

public Class IEKeySpec

extends Object
implements KeySpec, IESKey
Class Inheritance
All Implemented Interfaces
org.bouncycastle.jce.interfaces.IESKey, java.security.Key, java.io.Serializable, java.security.spec.KeySpec
Imports
java.security.PrivateKey, .PublicKey, java.security.spec.KeySpec, org.bouncycastle.jce.interfaces.IESKey

key pair for use with an integrated encryptor - together they provide what's required to generate the message.

Field Summary

Modifier and TypeField and Description
private PrivateKey
private PublicKey

Constructor Summary

AccessConstructor and Description
public
IEKeySpec(PrivateKey
our private key.
privKey
,
PublicKey
the public key of the sender/recipient.
pubKey
)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements java.security.Key.getAlgorithm.

return "IES"

public byte[]
getEncoded()

Implements java.security.Key.getEncoded.

returns null

public String
getFormat()

Implements java.security.Key.getFormat.

return null

public PrivateKey
getPrivate()

Implements org.bouncycastle.jce.interfaces.IESKey.getPrivate.

return the local private key.

public PublicKey
getPublic()

Implements org.bouncycastle.jce.interfaces.IESKey.getPublic.

return the intended recipient's/sender's public key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

privKeyback to summary
private PrivateKey privKey
pubKeyback to summary
private PublicKey pubKey

Constructor Detail

IEKeySpecback to summary
public IEKeySpec(PrivateKey privKey, PublicKey pubKey)
Parameters
privKey:PrivateKey

our private key.

pubKey:PublicKey

the public key of the sender/recipient.

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements java.security.Key.getAlgorithm.

return "IES"

Returns:String

Doc from java.security.Key.getAlgorithm.

the name of the algorithm associated with this key.

getEncodedback to summary
public byte[] getEncoded()

Implements java.security.Key.getEncoded.

returns null

Returns:byte[]

Doc from java.security.Key.getEncoded.

the encoded key, or null if the key does not support encoding.

getFormatback to summary
public String getFormat()

Implements java.security.Key.getFormat.

return null

Returns:String

Doc from java.security.Key.getFormat.

the primary encoding format of the key.

getPrivateback to summary
public PrivateKey getPrivate()

Implements org.bouncycastle.jce.interfaces.IESKey.getPrivate.

return the local private key.

getPublicback to summary
public PublicKey getPublic()

Implements org.bouncycastle.jce.interfaces.IESKey.getPublic.

return the intended recipient's/sender's public key.