.. java:import:: org.json JSONObject .. java:import:: java.math BigInteger .. java:import:: java.security KeyFactory .. java:import:: java.security.interfaces RSAKey .. java:import:: java.security.interfaces RSAPublicKey .. java:import:: java.security.spec RSAPublicKeySpec PublicKey ========= .. java:package:: com.idopte.scmapi :noindex: .. java:type:: public class PublicKey extends Key implements java.security.interfaces.RSAPublicKey Class describes a public key object. Inherits from \ :java:ref:`Key`\ and implements from \ :java:ref:`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 ^^^^^^^^^^^^ .. java:method:: @Override public String getAlgorithm() :outertype: PublicKey Not implemented. :return: ``null``. getEncoded ^^^^^^^^^^ .. java:method:: @Override public byte[] getEncoded() :outertype: PublicKey Specified by: \ :java:ref:`RSAPublicKey.getEncoded()`\ in \ :java:ref:`java.security.interfaces.RSAPublicKey`\ interface. getFormat ^^^^^^^^^ .. java:method:: @Override public String getFormat() :outertype: PublicKey Specified by: \ :java:ref:`RSAPublicKey.getFormat()`\ in \ :java:ref:`java.security.interfaces.RSAPublicKey`\ interface. getModulus ^^^^^^^^^^ .. java:method:: @Override public BigInteger getModulus() :outertype: PublicKey Specified by: \ :java:ref:`RSAKey.getModulus()`\ in \ :java:ref:`java.security.interfaces.RSAKey`\ interface. getPublicExponent ^^^^^^^^^^^^^^^^^ .. java:method:: @Override public BigInteger getPublicExponent() :outertype: PublicKey Specified by: \ :java:ref:`RSAPublicKey.getPublicExponent()`\ in \ :java:ref:`java.security.interfaces.RSAPublicKey`\ interface.