Package org.conscrypt
Class XdhKeySpec
java.lang.Object
java.security.spec.EncodedKeySpec
org.conscrypt.XdhKeySpec
- All Implemented Interfaces:
KeySpec
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.
-
Constructor Summary
ConstructorsConstructorDescriptionXdhKeySpec(byte[] encoded) Creates an instance ofXdhKeySpecby passing a public or private key in its raw format. -
Method Summary
Methods inherited from class java.security.spec.EncodedKeySpec
getAlgorithm, getEncoded
-
Constructor Details
-
XdhKeySpec
public XdhKeySpec(byte[] encoded) Creates an instance ofXdhKeySpecby passing a public or private key in its raw format.
-
-
Method Details