Package org.bouncycastle.jce.spec
Class MQVPrivateKeySpec
java.lang.Object
org.bouncycastle.jce.spec.MQVPrivateKeySpec
- All Implemented Interfaces:
Serializable,Key,PrivateKey,KeySpec,Destroyable,MQVPrivateKey
Deprecated.
use MQVParameterSpec
Static/ephemeral private key (pair) for use with ECMQV key agreement
(Optionally provides the ephemeral public key)
- See Also:
-
Field Summary
Fields inherited from interface java.security.PrivateKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionMQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey) Deprecated.MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.return "ECMQV"byte[]Deprecated.returns nullDeprecated.return the ephemeral private keyDeprecated.return the ephemeral public key (may be null)Deprecated.return nullDeprecated.return the static private keyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Constructor Details
-
MQVPrivateKeySpec
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 Details
-
getStaticPrivateKey
Deprecated.return the static private key- Specified by:
getStaticPrivateKeyin interfaceMQVPrivateKey
-
getEphemeralPrivateKey
Deprecated.return the ephemeral private key- Specified by:
getEphemeralPrivateKeyin interfaceMQVPrivateKey
-
getEphemeralPublicKey
Deprecated.return the ephemeral public key (may be null)- Specified by:
getEphemeralPublicKeyin interfaceMQVPrivateKey
-
getAlgorithm
Deprecated.return "ECMQV"- Specified by:
getAlgorithmin interfaceKey
-
getFormat
Deprecated.return null -
getEncoded
public byte[] getEncoded()Deprecated.returns null- Specified by:
getEncodedin interfaceKey
-