public class IEKeySpec extends Object implements KeySpec, IESKey
serialVersionUID| Constructor and Description |
|---|
IEKeySpec(PrivateKey privKey,
PublicKey pubKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
return "IES"
|
byte[] |
getEncoded()
returns null
|
String |
getFormat()
return null
|
PrivateKey |
getPrivate()
return the local private key.
|
PublicKey |
getPublic()
return the intended recipient's/sender's public key.
|
public IEKeySpec(PrivateKey privKey, PublicKey pubKey)
privKey - our private key.pubKey - the public key of the sender/recipient.public PublicKey getPublic()
public PrivateKey getPrivate()
getPrivate in interface IESKeypublic String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface KeyCopyright © 2015. All rights reserved.