JXTA

jxta.security.publickey
Interface RSAPublicKey


public interface RSAPublicKey
extends Key


Field Summary
static java.lang.String name
           
 
Method Summary
 boolean equals(RSAPublicKey key)
           
 int getModulus(byte[] modulus, int offset)
           
 int getModulusLength()
           
 int getPublicExponent(byte[] exponent, int offset)
           
 int getPublicExponentLength()
          Their byte lengths are also required
 void setModulus(byte[] modulus, int offset, int length)
           
 void setPublicExponent(byte[] exponent, int offset, int length)
          Given two primes, p and q, and [e,(p-1)(q-1)] = 1, n = pq Public key: e, n c = m**e mod n, e is exponent, n modulus
 
Methods inherited from interface jxta.security.cipher.Key
clearKey, getLength, getSize, getType, isInitialized
 

Field Detail

name

public static final java.lang.String name
Method Detail

equals

public boolean equals(RSAPublicKey key)

setPublicExponent

public void setPublicExponent(byte[] exponent,
                              int offset,
                              int length)
                       throws CryptoException
Given two primes, p and q, and [e,(p-1)(q-1)] = 1, n = pq Public key: e, n c = m**e mod n, e is exponent, n modulus

setModulus

public void setModulus(byte[] modulus,
                       int offset,
                       int length)
                throws CryptoException

getPublicExponent

public int getPublicExponent(byte[] exponent,
                             int offset)

getModulus

public int getModulus(byte[] modulus,
                      int offset)

getPublicExponentLength

public int getPublicExponentLength()
Their byte lengths are also required

getModulusLength

public int getModulusLength()

JXTA