java.io.Serializable
, java.security.Key
, java.security.spec.KeySpec
, IESKey
public class IEKeySpec extends java.lang.Object implements java.security.spec.KeySpec, IESKey
Constructor | Description |
---|---|
IEKeySpec(java.security.PrivateKey privKey,
java.security.PublicKey pubKey) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAlgorithm() |
return "IES"
|
byte[] |
getEncoded() |
returns null
|
java.lang.String |
getFormat() |
return null
|
java.security.PrivateKey |
getPrivate() |
return the local private key.
|
java.security.PublicKey |
getPublic() |
return the intended recipient's/sender's public key.
|
public IEKeySpec(java.security.PrivateKey privKey, java.security.PublicKey pubKey)
privKey
- our private key.pubKey
- the public key of the sender/recipient.public java.security.PublicKey getPublic()
public java.security.PrivateKey getPrivate()
getPrivate
in interface IESKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key