APIdia Launch Partner
Top Description Fields Methods
java.security.interfaces

public Interface DSAPrivateKey

extends DSAKey, PrivateKey
Known Direct Implementers
sun.security.provider.DSAPrivateKey
Imports
java.math.BigInteger

The standard interface to a DSA private key. DSA (Digital Signature Algorithm) is defined in NIST's FIPS-186.
Author
Benjamin Renaud
Since
1.1
See Also
java.security.Key, java.security.Signature, DSAKey, DSAPublicKey

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides java.security.PrivateKey.serialVersionUID.

Deprecated A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

Method Summary

Modifier and TypeMethod and Description
public default DSAParams
getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements java.security.interfaces.DSAKey.getParams.

Returns the parameters associated with this key.

public BigInteger

Returns:

the value of the private key, x.
getX
()

Returns the value of the private key, x.

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides java.security.PrivateKey.serialVersionUID.

Deprecated

A serialVersionUID field in an interface is ineffectual. Do not use; no replacement.

The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

Annotations
@Deprecated
@Serial

Method Detail

getParamsback to summary
public default DSAParams getParams()

Overrides default java.security.AsymmetricKey.getParams.

Implements java.security.interfaces.DSAKey.getParams.

Doc from java.security.AsymmetricKey.getParams.

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Implementation Specification

The default implementation returns null.

Annotations
@Override
getXback to summary
public BigInteger getX()

Returns the value of the private key, x.

Returns:BigInteger

the value of the private key, x.