Name
RSAPublickeyData
Synopsis
This interface represents the data
used to initialize an RSA private key. Instances of this object are
obtained from the getPublickey( )
method of the
PublicKeyAlgorithm
class for existing public keys.
The JXTA bindings do
not define a mechanism that can transmit this data to another peer.
In practice, the data could be transmitted in serialized form and
used to create the public key by calling the setPublickey( )
method of the PublicKeyAlgorithm
class.
public class RSAPublickeyData implements PublickeyData { // Public Constructors public RSAPublickeyData(); public RSAPublickeyData(jxta.security.publickey.RSAPublicKey pubKey); // Property Accessor Methods (by property name) public byte[ ] getModulus(); // default:null public void setModulus(byte[ ] newModulus); public int getModulusLength(); public byte[ ] getPublicExponent(); // default:null public void setPublicExponent(byte[ ] pubExponent); public int getPublicExponentLength(); public String getType(); // Implements:PublickeyData default:"RSA” // Methods Implementing PublickeyData public String getType(); // default:"RSA” }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.