public class MQVPrivateKeySpec extends Object implements KeySpec, MQVPrivateKey
serialVersionUID
Constructor and Description |
---|
MQVPrivateKeySpec(PrivateKey staticPrivateKey,
PrivateKey ephemeralPrivateKey) |
MQVPrivateKeySpec(PrivateKey staticPrivateKey,
PrivateKey ephemeralPrivateKey,
PublicKey ephemeralPublicKey) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
return "ECMQV"
|
byte[] |
getEncoded()
returns null
|
PrivateKey |
getEphemeralPrivateKey()
return the ephemeral private key
|
PublicKey |
getEphemeralPublicKey()
return the ephemeral public key (may be null)
|
String |
getFormat()
return null
|
PrivateKey |
getStaticPrivateKey()
return the static private key
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
public MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey)
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.public MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey)
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.ephemeralPublicKey
- the ephemeral public key (may be null).public PrivateKey getStaticPrivateKey()
getStaticPrivateKey
in interface MQVPrivateKey
public PrivateKey getEphemeralPrivateKey()
getEphemeralPrivateKey
in interface MQVPrivateKey
public PublicKey getEphemeralPublicKey()
getEphemeralPublicKey
in interface MQVPrivateKey
public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2015. All rights reserved.