Package org.bouncycastle.jce.spec
Class MQVPrivateKeySpec
- java.lang.Object
-
- org.bouncycastle.jce.spec.MQVPrivateKeySpec
-
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,KeySpec
,Destroyable
,MQVPrivateKey
public class MQVPrivateKeySpec extends Object implements KeySpec, MQVPrivateKey
Deprecated.use MQVParameterSpecStatic/ephemeral private key (pair) for use with ECMQV key agreement (Optionally provides the ephemeral public key)- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.PrivateKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey)
Deprecated.MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getAlgorithm()
Deprecated.return "ECMQV"byte[]
getEncoded()
Deprecated.returns nullPrivateKey
getEphemeralPrivateKey()
Deprecated.return the ephemeral private keyPublicKey
getEphemeralPublicKey()
Deprecated.return the ephemeral public key (may be null)String
getFormat()
Deprecated.return nullPrivateKey
getStaticPrivateKey()
Deprecated.return the static private key-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Constructor Detail
-
MQVPrivateKeySpec
public MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey)
Deprecated.- Parameters:
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.
-
MQVPrivateKeySpec
public MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey)
Deprecated.- Parameters:
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.ephemeralPublicKey
- the ephemeral public key (may be null).
-
-
Method Detail
-
getStaticPrivateKey
public PrivateKey getStaticPrivateKey()
Deprecated.return the static private key- Specified by:
getStaticPrivateKey
in interfaceMQVPrivateKey
-
getEphemeralPrivateKey
public PrivateKey getEphemeralPrivateKey()
Deprecated.return the ephemeral private key- Specified by:
getEphemeralPrivateKey
in interfaceMQVPrivateKey
-
getEphemeralPublicKey
public PublicKey getEphemeralPublicKey()
Deprecated.return the ephemeral public key (may be null)- Specified by:
getEphemeralPublicKey
in interfaceMQVPrivateKey
-
getAlgorithm
public String getAlgorithm()
Deprecated.return "ECMQV"- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
public String getFormat()
Deprecated.return null
-
getEncoded
public byte[] getEncoded()
Deprecated.returns null- Specified by:
getEncoded
in interfaceKey
-
-