public class MQVPrivateKeySpec extends java.lang.Object implements java.security.spec.KeySpec, MQVPrivateKey
Constructor and Description |
---|
MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey,
java.security.PrivateKey ephemeralPrivateKey)
Deprecated.
|
MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey,
java.security.PrivateKey ephemeralPrivateKey,
java.security.PublicKey ephemeralPublicKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Deprecated.
return "ECMQV"
|
byte[] |
getEncoded()
Deprecated.
returns null
|
java.security.PrivateKey |
getEphemeralPrivateKey()
Deprecated.
return the ephemeral private key
|
java.security.PublicKey |
getEphemeralPublicKey()
Deprecated.
return the ephemeral public key (may be null)
|
java.lang.String |
getFormat()
Deprecated.
return null
|
java.security.PrivateKey |
getStaticPrivateKey()
Deprecated.
return the static private key
|
public MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey, java.security.PrivateKey ephemeralPrivateKey)
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.public MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey, java.security.PrivateKey ephemeralPrivateKey, java.security.PublicKey ephemeralPublicKey)
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.ephemeralPublicKey
- the ephemeral public key (may be null).public java.security.PrivateKey getStaticPrivateKey()
getStaticPrivateKey
in interface MQVPrivateKey
public java.security.PrivateKey getEphemeralPrivateKey()
getEphemeralPrivateKey
in interface MQVPrivateKey
public java.security.PublicKey getEphemeralPublicKey()
getEphemeralPublicKey
in interface MQVPrivateKey
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