gnu.crypto.pki.provider
Class GnuDSAPublicKey
java.lang.Object
gnu.crypto.pki.provider.GnuDSAPublicKey
- All Implemented Interfaces:
- Serializable, DSAKey, DSAPublicKey, Key, PublicKey
public class GnuDSAPublicKey
- extends Object
- implements DSAPublicKey
- See Also:
- Serialized Form
y
BigInteger y
p
BigInteger p
q
BigInteger q
g
BigInteger g
GnuDSAPublicKey
public GnuDSAPublicKey(BigInteger y,
BigInteger p,
BigInteger q,
BigInteger g)
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()
- Overrides:
toString
in class Object
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.