Class DSAPrivateKeyImpl
java.lang.Object
org.apache.harmony.security.PrivateKeyImpl
org.apache.harmony.security.provider.crypto.DSAPrivateKeyImpl
- All Implemented Interfaces:
Serializable,DSAKey,DSAPrivateKey,Key,PrivateKey
public class DSAPrivateKeyImpl extends PrivateKeyImpl implements DSAPrivateKey
The class provides DSAPrivateKey functionality by extending a class implementing PrivateKey
and implementing methods defined in both interfaces, DSAKey and DSAPrivateKey
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DSAPrivateKeyImpl(DSAPrivateKeySpec keySpec)Creates object from DSAPrivateKeySpec.DSAPrivateKeyImpl(PKCS8EncodedKeySpec keySpec)Creates object from PKCS8EncodedKeySpec. -
Method Summary
Modifier and Type Method Description DSAParamsgetParams()Returns the DSA key parameters.BigIntegergetX()Returns the private key valuex.Methods inherited from class org.apache.harmony.security.PrivateKeyImpl
getAlgorithm, getEncoded, getFormat, setAlgorithm, setEncoding
-
Constructor Details
-
DSAPrivateKeyImpl
Creates object from DSAPrivateKeySpec.- Parameters:
keySpec- - a DSAPrivateKeySpec object
-
DSAPrivateKeyImpl
Creates object from PKCS8EncodedKeySpec.- Parameters:
keySpec- - a XPKCS8EncodedKeySpec object- Throws:
InvalidKeySpecException- - if key data cannot be obtain from encoded format
-
-
Method Details
-
getX
Description copied from interface:DSAPrivateKeyReturns the private key valuex.- Specified by:
getXin interfaceDSAPrivateKey- Returns:
- the private key value
x.
-
getParams
Description copied from interface:DSAKeyReturns the DSA key parameters.
-