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

public Interface RSAPublicKey

extends PublicKey, RSAKey
Known Direct Implementers
sun.security.rsa.RSAPublicKeyImpl
Imports
java.math.BigInteger, java.security.spec.AlgorithmParameterSpec

The interface to an RSA public key.
Author
Jan Luehe
Since
1.2

Field Summary

Modifier and TypeField and Description
public static final long
serialVersionUID

Hides java.security.PublicKey.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
getParams()

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

Returns the parameters associated with this key.

public BigInteger

Returns:

the public exponent
getPublicExponent
()

Returns the public exponent.

Inherited from java.security.interfaces.RSAKey:
getModulus

Field Detail

serialVersionUIDback to summary
public static final long serialVersionUID

Hides java.security.PublicKey.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
@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.

Annotations
@Override
Since
11
getPublicExponentback to summary
public BigInteger getPublicExponent()

Returns the public exponent.

Returns:BigInteger

the public exponent