public class

MQVPrivateKeySpec

extends Object
implements KeySpec MQVPrivateKey
java.lang.Object
   ↳ org.bouncycastle.jce.spec.MQVPrivateKeySpec

Class Overview

Static/ephemeral private key (pair) for use with ECMQV key agreement (Optionally provides the ephemeral public key)

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface java.security.PrivateKey
Public Constructors
MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey)
MQVPrivateKeySpec(PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey)
Public Methods
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
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Key
From interface org.bouncycastle.jce.interfaces.MQVPrivateKey

Public Constructors

public MQVPrivateKeySpec (PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey)

Parameters
staticPrivateKey the static private key.
ephemeralPrivateKey the ephemeral private key.

public MQVPrivateKeySpec (PrivateKey staticPrivateKey, PrivateKey ephemeralPrivateKey, PublicKey ephemeralPublicKey)

Parameters
staticPrivateKey the static private key.
ephemeralPrivateKey the ephemeral private key.
ephemeralPublicKey the ephemeral public key (may be null).

Public Methods

public String getAlgorithm ()

return "ECMQV"

public byte[] getEncoded ()

returns null

public PrivateKey getEphemeralPrivateKey ()

return the ephemeral private key

public PublicKey getEphemeralPublicKey ()

return the ephemeral public key (may be null)

public String getFormat ()

return null

public PrivateKey getStaticPrivateKey ()

return the static private key