Top Description Fields Methods
java.security.interfaces

public Interface RSAPrivateKey

extends PrivateKey, RSAKey
Known Direct Subinterfaces
java.security.interfaces.RSAMultiPrimePrivateCrtKey, java.security.interfaces.RSAPrivateCrtKey
Known Direct Implementers
sun.security.rsa.RSAPrivateKeyImpl
Imports
java.math.BigInteger, java.security.spec.AlgorithmParameterSpec

The interface to an RSA private key.
Author
Jan Luehe
Since
1.2
See Also
RSAPrivateCrtKey

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 type fingerprint that is set to indicate serialization compatibility with a previous version of the type.

Method Summary

Modifier and TypeMethod and Description
public default AlgorithmParameterSpec

Returns:

the associated parameters, may be null
getParams
()

Overrides default java.security.AsymmetricKey.getParams, java.security.interfaces.RSAKey.getParams.

Returns the parameters associated with this key.

public BigInteger

Returns:

the private exponent
getPrivateExponent
()

Returns the private exponent.

Inherited from java.security.interfaces.RSAKey:
getModulus

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 type fingerprint that is set to indicate serialization compatibility with a previous version of the type.

Annotations
@Deprecated
@SuppressWarnings:serial
@Serial

Method Detail

getParamsback to summary
public default AlgorithmParameterSpec getParams()

Overrides default java.security.AsymmetricKey.getParams, java.security.interfaces.RSAKey.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.

Returns:AlgorithmParameterSpec

the associated parameters, may be null

Annotations
@Override
Since
22
getPrivateExponentback to summary
public BigInteger getPrivateExponent()

Returns the private exponent.

Returns:BigInteger

the private exponent