Name

RSAPrivateKey

Synopsis

This interface represents a private key that uses the RSA cryptography algorithm. Although this interface contains methods that can affect the state of the key, programmers should treat RSA keys as opaque objects (unless, of course, they are implementing the RSA key classes).

public interface RSAPrivateKey extends jxta.security.util.Description, jxta.security.cipher.Key {
// Public Constants
   public static final String name;                             
// ="RSA Private Key”
                  // Property Accessor Methods (by property name)
   public abstract int getCrtCoefficientLength();  
   public abstract int getModulusLength();  
   public abstract int getPrimeExponentPLength();  
   public abstract int getPrimeExponentQLength();  
   public abstract int getPrimePLength();  
   public abstract int getPrimeQLength();  
   public abstract int getPrivateExponentLength();  
// Public Instance Methods
   public abstract boolean equals(jxta.security.publickey.RSAPrivateKey key); 
   public abstract int getCrtCoefficient(byte[ ] crtCoefficient, int offset);
   public abstract int getModulus(byte[ ] modulus, int offset);
   public abstract int getPrimeExponentP(byte[ ] primeExponentP, int offset);
   public abstract int getPrimeExponentQ(byte[ ] primeExponentQ, int offset); 
   public abstract int getPrimeP(byte[ ] primeP, int offset); 
   public abstract int getPrimeQ(byte[ ] primeQ, int offset);  
   public abstract int getPrivateExponent(byte[ ] exponent, int offset);
   public abstract void setCrtCoefficient(byte[ ] crtCoefficient, int offset, int length) throws ...

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.