    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!).

##

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

##

getAlgorithm()
  Returns the String "DSA"
getEncoded()
  Get the encoding, as encoding is not supported this returns null.
getFormat()
  Get the format of the encoding, as encoding is not supported this returns null.
getParams()
getX()
newDSAPrivateKeyClass(BigInteger, BigInteger, BigInteger, BigInteger)
  Return a new DSA private key from the given BigInteger values.
newDSAPrivateKeyClass(BigInteger, DSAParams)
  Return a new DSA private key from the given x and the parameters dsaparams.

##

DSAPrivateKeyClass

     public DSAPrivateKeyClass(BigInteger x,
                               DSAParams dsaParams)

  Create a new DSA private key from the given x and the parameters dsaparams.

DSAPrivateKeyClass

     public DSAPrivateKeyClass(BigInteger x,
                               BigInteger p,
                               BigInteger q,
                               BigInteger g)

  Create a new DSA private key from the given BigInteger values.

##

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.

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.

getX

     public BigInteger getX()

getParams

     public DSAParams getParams()

getAlgorithm

     public String getAlgorithm()

  Returns the String "DSA"

getFormat

     public String getFormat()

  Get the format of the encoding, as encoding is not supported this returns null.

getEncoded

     public byte[] getEncoded()

  Get the encoding, as encoding is not supported this returns null.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index