RSAPublicKey

  • RSAPublicKey is an interface representing an RSA public key in Java security, inheriting from PublicKey and RSAKey.

  • It provides access to the public exponent through the getPublicExponent() method and the modulus via the inherited getModulus() method.

  • It includes a serialVersionUID constant to ensure serialization compatibility.

  • Developers can also access standard key information like algorithm, encoding format, and encoded key data using inherited methods from the Key interface.

public interface RSAPublicKey implements PublicKey RSAKey

The interface to an RSA public key.

Constant Summary

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

Inherited Constant Summary

Public Method Summary

abstract BigInteger
getPublicExponent()
Returns the public exponent.

Inherited Method Summary

Constants

public static final long serialVersionUID

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

Constant Value: -8727434096241101194

Public Methods

public abstract BigInteger getPublicExponent ()

Returns the public exponent.

Returns
  • the public exponent