org.bouncycastle.jce.provider
Class JCEDHPublicKey
java.lang.Object
org.bouncycastle.jce.provider.JCEDHPublicKey
- All Implemented Interfaces:
- java.io.Serializable, java.security.Key, java.security.PublicKey, javax.crypto.interfaces.DHKey, javax.crypto.interfaces.DHPublicKey
public class JCEDHPublicKey
- extends java.lang.Object
- implements javax.crypto.interfaces.DHPublicKey
- See Also:
- Serialized Form
Field Summary |
private javax.crypto.spec.DHParameterSpec |
dhSpec
|
(package private) static long |
serialVersionUID
|
private java.math.BigInteger |
y
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
y
private java.math.BigInteger y
dhSpec
private javax.crypto.spec.DHParameterSpec dhSpec
JCEDHPublicKey
JCEDHPublicKey(javax.crypto.spec.DHPublicKeySpec spec)
JCEDHPublicKey
JCEDHPublicKey(javax.crypto.interfaces.DHPublicKey key)
JCEDHPublicKey
JCEDHPublicKey(DHPublicKeyParameters params)
JCEDHPublicKey
JCEDHPublicKey(java.math.BigInteger y,
javax.crypto.spec.DHParameterSpec dhSpec)
JCEDHPublicKey
JCEDHPublicKey(SubjectPublicKeyInfo info)
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
readObject
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeObject
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException