Package org.bouncycastle.jce.spec
Class MQVPrivateKeySpec
- java.lang.Object
-
- org.bouncycastle.jce.spec.MQVPrivateKeySpec
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Key
,java.security.PrivateKey
,java.security.spec.KeySpec
,javax.security.auth.Destroyable
,MQVPrivateKey
public class MQVPrivateKeySpec extends java.lang.Object implements java.security.spec.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
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
Deprecated.return "ECMQV"byte[]
getEncoded()
Deprecated.returns nulljava.security.PrivateKey
getEphemeralPrivateKey()
Deprecated.return the ephemeral private keyjava.security.PublicKey
getEphemeralPublicKey()
Deprecated.return the ephemeral public key (may be null)java.lang.String
getFormat()
Deprecated.return nulljava.security.PrivateKey
getStaticPrivateKey()
Deprecated.return the static private key
-
-
-
Constructor Detail
-
MQVPrivateKeySpec
public MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey, java.security.PrivateKey ephemeralPrivateKey)
Deprecated.- Parameters:
staticPrivateKey
- the static private key.ephemeralPrivateKey
- the ephemeral private key.
-
MQVPrivateKeySpec
public MQVPrivateKeySpec(java.security.PrivateKey staticPrivateKey, java.security.PrivateKey ephemeralPrivateKey, java.security.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 java.security.PrivateKey getStaticPrivateKey()
Deprecated.return the static private key- Specified by:
getStaticPrivateKey
in interfaceMQVPrivateKey
-
getEphemeralPrivateKey
public java.security.PrivateKey getEphemeralPrivateKey()
Deprecated.return the ephemeral private key- Specified by:
getEphemeralPrivateKey
in interfaceMQVPrivateKey
-
getEphemeralPublicKey
public java.security.PublicKey getEphemeralPublicKey()
Deprecated.return the ephemeral public key (may be null)- Specified by:
getEphemeralPublicKey
in interfaceMQVPrivateKey
-
getAlgorithm
public java.lang.String getAlgorithm()
Deprecated.return "ECMQV"- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
Deprecated.return null- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
Deprecated.returns null- Specified by:
getEncoded
in interfacejava.security.Key
-
-