com.ibm.security12.sun.security.provider
Class DSAPrivateKey
java.lang.Object
|
+--com.ibm.security12.sun.security.pkcs.PKCS8Key
|
+--com.ibm.security12.sun.security.provider.DSAPrivateKey
- public final class DSAPrivateKey
- extends PKCS8Key
- implements DSAPrivateKey, Serializable
A PKCS#8 private key for the Digital Signature Algorithm.
- Version:
- 1.48, 98/07/22
- Author:
- Benjamin Renaud
- See Also:
DSAPublicKey
,
AlgIdDSA
,
DSA
, Serialized Form
Constructor Summary |
DSAPrivateKey()
|
DSAPrivateKey(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Make a DSA private key out of a private key and three parameters. |
DSAPrivateKey(byte[] encoded)
Make a DSA private key from its DER encoding (PKCS #8). |
Method Summary |
DSAParams |
getParams()
Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed. |
java.math.BigInteger |
getX()
Get the raw private key, x, without the parameters. |
protected void |
parseKeyBits()
|
String |
toString()
|
Methods inherited from class com.ibm.security12.sun.security.pkcs.PKCS8Key |
decode,
decode,
encode,
encode,
equals,
getAlgorithm,
getAlgorithmId,
getEncoded,
getFormat,
hashCode,
parse,
parseKey |
DSAPrivateKey
public DSAPrivateKey()
DSAPrivateKey
public DSAPrivateKey(java.math.BigInteger x,
java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
throws InvalidKeyException
- Make a DSA private key out of a private key and three parameters.
DSAPrivateKey
public DSAPrivateKey(byte[] encoded)
throws InvalidKeyException
- Make a DSA private key from its DER encoding (PKCS #8).
getParams
public DSAParams getParams()
- Returns the DSA parameters associated with this key, or null if the
parameters could not be parsed.
getX
public java.math.BigInteger getX()
- Get the raw private key, x, without the parameters.
- Specified by:
- getX in interface DSAPrivateKey
- See Also:
getParameters
toString
public String toString()
- Overrides:
- toString in class PKCS8Key
parseKeyBits
protected void parseKeyBits()
throws InvalidKeyException
- Overrides:
- parseKeyBits in class PKCS8Key