Package org.bouncycastle.jce.provider
Class JCEDHPrivateKey
java.lang.Object
org.bouncycastle.jce.provider.JCEDHPrivateKey
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,DHKey
,DHPrivateKey
,Destroyable
,PKCS12BagAttributeCarrier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return a PKCS8 representation of the key.return the encoding format we produce in getEncoded().getX()
void
setBagAttribute
(ASN1ObjectIdentifier oid, ASN1Encodable attribute) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Constructor Details
-
JCEDHPrivateKey
protected JCEDHPrivateKey()
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
return the encoding format we produce in getEncoded(). -
getEncoded
public byte[] getEncoded()Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.- Specified by:
getEncoded
in interfaceKey
- Returns:
- a PKCS8 representation of the key.
-
getParams
-
getX
- Specified by:
getX
in interfaceDHPrivateKey
-
setBagAttribute
- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-