Bouncy Castle Cryptography 1.50

org.bouncycastle.jcajce.provider.asymmetric.dh
Class BCDHPublicKey

java.lang.Object
  extended by org.bouncycastle.jcajce.provider.asymmetric.dh.BCDHPublicKey
All Implemented Interfaces:
java.io.Serializable, java.security.Key, java.security.PublicKey, javax.crypto.interfaces.DHKey, javax.crypto.interfaces.DHPublicKey

public class BCDHPublicKey
extends java.lang.Object
implements javax.crypto.interfaces.DHPublicKey

See Also:
Serialized Form

Constructor Summary
BCDHPublicKey(SubjectPublicKeyInfo info)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 javax.crypto.spec.DHParameterSpec getParams()
           
 java.math.BigInteger getY()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCDHPublicKey

public BCDHPublicKey(SubjectPublicKeyInfo info)
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

getParams

public javax.crypto.spec.DHParameterSpec getParams()
Specified by:
getParams in interface javax.crypto.interfaces.DHKey

getY

public java.math.BigInteger getY()
Specified by:
getY in interface javax.crypto.interfaces.DHPublicKey

hashCode

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

equals

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

Bouncy Castle Cryptography 1.50