public class DSAPrivateKeyImpl extends PrivateKeyImpl implements DSAPrivateKey
Constructor and Description |
---|
DSAPrivateKeyImpl(DSAPrivateKeySpec keySpec)
Creates object from DSAPrivateKeySpec.
|
DSAPrivateKeyImpl(PKCS8EncodedKeySpec keySpec)
Creates object from PKCS8EncodedKeySpec.
|
Modifier and Type | Method and Description |
---|---|
DSAParams |
getParams()
Returns the DSA key parameters.
|
BigInteger |
getX()
Returns the private key value
x . |
getAlgorithm, getEncoded, getFormat, setAlgorithm, setEncoding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm, getEncoded, getFormat
public DSAPrivateKeyImpl(DSAPrivateKeySpec keySpec)
keySpec
- - a DSAPrivateKeySpec objectpublic DSAPrivateKeyImpl(PKCS8EncodedKeySpec keySpec) throws InvalidKeySpecException
keySpec
- - a XPKCS8EncodedKeySpec objectInvalidKeySpecException
- - if key data cannot be obtain from encoded formatpublic BigInteger getX()
DSAPrivateKey
x
.getX
in interface DSAPrivateKey
x
.