org.bouncycastle.jce.provider
Class JDKDSAPublicKey

java.lang.Object
  extended by org.bouncycastle.jce.provider.JDKDSAPublicKey
All Implemented Interfaces:
java.io.Serializable, java.security.interfaces.DSAKey, java.security.interfaces.DSAPublicKey, java.security.Key, java.security.PublicKey

public class JDKDSAPublicKey
extends java.lang.Object
implements java.security.interfaces.DSAPublicKey

See Also:
Serialized Form

Field Summary
private  java.security.interfaces.DSAParams dsaSpec
           
private static long serialVersionUID
           
private  java.math.BigInteger y
           
 
Constructor Summary
JDKDSAPublicKey(java.math.BigInteger y, java.security.spec.DSAParameterSpec dsaSpec)
           
JDKDSAPublicKey(java.security.interfaces.DSAPublicKey key)
           
JDKDSAPublicKey(DSAPublicKeyParameters params)
           
JDKDSAPublicKey(java.security.spec.DSAPublicKeySpec spec)
           
JDKDSAPublicKey(SubjectPublicKeyInfo info)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.security.interfaces.DSAParams getParams()
           
 java.math.BigInteger getY()
           
 int hashCode()
           
private  boolean isNotNull(DEREncodable parameters)
           
private  void readObject(java.io.ObjectInputStream in)
           
 java.lang.String toString()
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

y

private java.math.BigInteger y

dsaSpec

private java.security.interfaces.DSAParams dsaSpec
Constructor Detail

JDKDSAPublicKey

JDKDSAPublicKey(java.security.spec.DSAPublicKeySpec spec)

JDKDSAPublicKey

JDKDSAPublicKey(java.security.interfaces.DSAPublicKey key)

JDKDSAPublicKey

JDKDSAPublicKey(DSAPublicKeyParameters params)

JDKDSAPublicKey

JDKDSAPublicKey(java.math.BigInteger y,
                java.security.spec.DSAParameterSpec dsaSpec)

JDKDSAPublicKey

JDKDSAPublicKey(SubjectPublicKeyInfo info)
Method Detail

isNotNull

private boolean isNotNull(DEREncodable parameters)

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 java.security.interfaces.DSAParams getParams()
Specified by:
getParams in interface java.security.interfaces.DSAKey

getY

public java.math.BigInteger getY()
Specified by:
getY in interface java.security.interfaces.DSAPublicKey

toString

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

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

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