PublicKeyRSA

public class PublicKeyRSA extends PublicKey implements java.security.interfaces.RSAPublicKey

Class describes a public key object. Inherits from PublicKey and implements java.security.interfaces.RSAPublicKey.

Note that the constructor is not intended to be called by user code. Such objects are constructed internally by the API.

Methods

getAlgorithm

public String getAlgorithm()

Returns algorithm of key, which is "RSA".

Returns:

"RSA".

getEncoded

public byte[] getEncoded()

Specified by:

RSAPublicKey.getEncoded() in java.security.interfaces.RSAPublicKey interface.

getFormat

public String getFormat()

Specified by:

RSAPublicKey.getFormat() in java.security.interfaces.RSAPublicKey interface.

getModulus

public BigInteger getModulus()

Specified by:

RSAKey.getModulus() in java.security.interfaces.RSAKey interface.

getPublicExponent

public BigInteger getPublicExponent()

Specified by:

RSAPublicKey.getPublicExponent() in java.security.interfaces.RSAPublicKey interface.