For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.provider
Class GnuDSAPublicKey

java.lang.Object
  extended bygnu.crypto.pki.provider.GnuDSAPublicKey
All Implemented Interfaces:
DSAKey, DSAPublicKey, Key, PublicKey, Serializable

public class GnuDSAPublicKey
extends Object
implements DSAPublicKey

See Also:
Serialized Form

Field Summary
(package private)  BigInteger g
           
(package private)  BigInteger p
           
(package private)  BigInteger q
           
(package private)  BigInteger y
           
 
Fields inherited from interface java.security.interfaces.DSAPublicKey
serialVersionUID
 
Constructor Summary
GnuDSAPublicKey(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
           
 
Method Summary
 String getAlgorithm()
           
 byte[] getEncoded()
          The encoded form of DSA public keys is: SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, subjectPublicKey BIT STRING }
 String getFormat()
           
 DSAParams getParams()
           
 BigInteger getY()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

y

BigInteger y

p

BigInteger p

q

BigInteger q

g

BigInteger g
Constructor Detail

GnuDSAPublicKey

public GnuDSAPublicKey(BigInteger y,
                       BigInteger p,
                       BigInteger q,
                       BigInteger g)
Method Detail

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface Key

getFormat

public String getFormat()
Specified by:
getFormat in interface Key

getEncoded

public byte[] getEncoded()
The encoded form of DSA public keys is:
 SubjectPublicKeyInfo ::= SEQUENCE {
   algorithm AlgorithmIdentifier,
   subjectPublicKey BIT STRING }
 

Specified by:
getEncoded in interface Key

getParams

public DSAParams getParams()
Specified by:
getParams in interface DSAKey

getY

public BigInteger getY()
Specified by:
getY in interface DSAPublicKey

toString

public String toString()

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.