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 IESKey
public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2015. All rights reserved.