Class BCDHPublicKey
- java.lang.Object
-
- 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
Constructors Constructor Description BCDHPublicKey(SubjectPublicKeyInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DHPublicKeyParameters
engineGetKeyParameters()
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()
java.lang.String
toString()
-
-
-
Constructor Detail
-
BCDHPublicKey
public BCDHPublicKey(SubjectPublicKeyInfo info)
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParams
public javax.crypto.spec.DHParameterSpec getParams()
- Specified by:
getParams
in interfacejavax.crypto.interfaces.DHKey
-
getY
public java.math.BigInteger getY()
- Specified by:
getY
in interfacejavax.crypto.interfaces.DHPublicKey
-
engineGetKeyParameters
public DHPublicKeyParameters engineGetKeyParameters()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-