All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.dsig.DSAPublicKeyClass

java.lang.Object
   |
   +----w3c.www.dsig.DSAPublicKeyClass

public class DSAPublicKeyClass
extends Object
implements DSAPublicKey
An implementation of the java.security.interfaces.DSAPublicKey interface. This was written because generating a DSA public key from given parameters using the JDK implementation in the Sun provider is not possible by via the security interfaces (BUG!).


Constructor Index

 o DSAPublicKeyClass(BigInteger, BigInteger, BigInteger, BigInteger)
Create a new DSA public key from the given BigInteger values.
 o DSAPublicKeyClass(BigInteger, DSAParams)
Create a new DSA public key from the given y and the parameters dsaparams.

Method Index

 o getAlgorithm()
Returns the String "DSA"
 o getEncoded()
Get the encoding, as encoding is not supported this returns null.
 o getFormat()
Get the format of the encoding, as encoding is not supported this returns null.
 o getParams()
 o getY()
 o newDSAPublicKeyClass(BigInteger, BigInteger, BigInteger, BigInteger)
Return a new DSA public key from the given y and the parameters BigIntegers.
 o newDSAPublicKeyClass(BigInteger, DSAParams)
Return a new DSA public key from the given y and the parameters dsaparams.

Constructors

 o DSAPublicKeyClass
 public DSAPublicKeyClass(BigInteger y,
                          DSAParams dsaParams)
Create a new DSA public key from the given y and the parameters dsaparams.

 o DSAPublicKeyClass
 public DSAPublicKeyClass(BigInteger y,
                          BigInteger p,
                          BigInteger q,
                          BigInteger g)
Create a new DSA public key from the given BigInteger values.

Methods

 o newDSAPublicKeyClass
 public static DSAPublicKeyClass newDSAPublicKeyClass(BigInteger y,
                                                      DSAParams dsaParams)
Return a new DSA public key from the given y and the parameters dsaparams. This is equivalent to using the constructor with new() except that this method could be declared in an interface (which it currently is not) while constructors cannot.

 o newDSAPublicKeyClass
 public static DSAPublicKeyClass newDSAPublicKeyClass(BigInteger y,
                                                      BigInteger p,
                                                      BigInteger q,
                                                      BigInteger g)
Return a new DSA public key from the given y and the parameters BigIntegers. This is equivalent to using the constructor with new() except that this method could be declared in an interface (which it currently is not) while constructors cannot.

 o getY
 public BigInteger getY()
 o getParams
 public DSAParams getParams()
 o getAlgorithm
 public String getAlgorithm()
Returns the String "DSA"

 o getFormat
 public String getFormat()
Get the format of the encoding, as encoding is not supported this returns null.

 o getEncoded
 public byte[] getEncoded()
Get the encoding, as encoding is not supported this returns null.


All Packages  Class Hierarchy  This Package  Previous  Next  Index