Package: org.conscrypt

XdhKeySpec

public final class XdhKeySpec extends java.security.spec.EncodedKeySpec 
External Diffie–Hellman key spec holding a key which could be either a public or private key.

Subclasses EncodedKeySpec using the non-Standard "raw" format. The XdhKeyFactory class utilises this in order to create XDH keys from raw bytes and to return them as an XdhKeySpec allowing the raw key material to be extracted from an XDH key.

Constructors

public XdhKeySpec(byte[] encoded)
Creates an instance of XdhKeySpec by passing a public or private key in its raw format.

Public Methods

getFormat

public String getFormat()

getKey

public byte[] getKey()
Returns the public or private key in its raw format.
Returns
byte[] key in its raw format.

equals

public boolean equals(Object o)

hashCode

public int hashCode()