Class BCXDHPrivateKey
- java.lang.Object
-
- org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPrivateKey
-
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
,XDHKey
,XDHPrivateKey
public class BCXDHPrivateKey extends Object implements XDHPrivateKey
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
XDHPublicKey
getPublicKey()
Return the public key associated with this private key.int
hashCode()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
-
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
getPublicKey
public XDHPublicKey getPublicKey()
Description copied from interface:XDHPrivateKey
Return the public key associated with this private key.- Specified by:
getPublicKey
in interfaceXDHPrivateKey
- Returns:
- an XDHPublicKey
-
-