All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.dsig.DSAPrivateKeyClass

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

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


Constructor Index

 o DSAPrivateKeyClass(BigInteger, BigInteger, BigInteger, BigInteger)
Create a new DSA private key from the given BigInteger values.
 o DSAPrivateKeyClass(BigInteger, DSAParams)
Create a new DSA private key from the given x 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 getX()
 o newDSAPrivateKeyClass(BigInteger, BigInteger, BigInteger, BigInteger)
Return a new DSA private key from the given BigInteger values.
 o newDSAPrivateKeyClass(BigInteger, DSAParams)
Return a new DSA private key from the given x and the parameters dsaparams.

Constructors

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

 o DSAPrivateKeyClass
 public DSAPrivateKeyClass(BigInteger x,
                           BigInteger p,
                           BigInteger q,
                           BigInteger g)
Create a new DSA private key from the given BigInteger values.

Methods

 o newDSAPrivateKeyClass
 public static DSAPrivateKeyClass newDSAPrivateKeyClass(BigInteger x,
                                                        DSAParams dsaParams)
Return a new DSA private key from the given x 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 newDSAPrivateKeyClass
 public static DSAPrivateKeyClass newDSAPrivateKeyClass(BigInteger x,
                                                        BigInteger p,
                                                        BigInteger q,
                                                        BigInteger g)
Return a new DSA private key from the given BigInteger values. 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 getX
 public BigInteger getX()
 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