Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.provider.asymmetric.edec
Class BCXDHPrivateKey

java.lang.Object
  |
  +--org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPrivateKey
All Implemented Interfaces:
java.security.Key, java.security.PrivateKey, java.io.Serializable, XDHKey, XDHPrivateKey

public class BCXDHPrivateKey
extends java.lang.Object
implements XDHPrivateKey

See Also:
Serialized Form

Fields inherited from interface java.security.Key
serialVersionUID
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 XDHPublicKey getPublicKey()
          Return the public key associated with this private key.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

getPublicKey

public XDHPublicKey getPublicKey()
Description copied from interface: XDHPrivateKey
Return the public key associated with this private key.
Specified by:
getPublicKey in interface XDHPrivateKey
Following copied from interface: org.bouncycastle.jcajce.interfaces.XDHPrivateKey
Returns:
an XDHPublicKey

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Bouncy Castle Cryptography Library 1.77.0