|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxta.security.impl.publickey.RSAKey
Fields inherited from interface jxta.security.publickey.RSAPublicKey |
name |
Fields inherited from interface jxta.security.publickey.RSAPrivateKey |
name |
Constructor Summary | |
RSAKey(byte type,
short len)
Constructor |
Method Summary | |
void |
clearDebug()
turn off debugging |
void |
clearKey()
Clear key values |
boolean |
equals(jxta.security.publickey.RSAPrivateKey key)
|
boolean |
equals(jxta.security.publickey.RSAPublicKey key)
|
java.lang.String |
getAlgorithmName()
|
int |
getCrtCoefficient(byte[] crtCo,
int offset)
|
int |
getCrtCoefficientLength()
Chinese remainder theorem coefficient 1/q mod p |
int |
getLength()
get Key length in bytes |
int |
getModulus(byte[] mod,
int offset)
|
int |
getModulusLength()
get modulus length, n Note: This may exceed the keysize in bytes by one byte. |
int |
getPrimeExponentP(byte[] pExpP,
int offset)
|
int |
getPrimeExponentPLength()
prime exponent, d mod (p-1) |
int |
getPrimeExponentQ(byte[] pExpQ,
int offset)
|
int |
getPrimeExponentQLength()
prime exponent, d mod (q-1) |
int |
getPrimeP(byte[] prP,
int offset)
|
int |
getPrimePLength()
Prime p |
int |
getPrimeQ(byte[] prQ,
int offset)
|
int |
getPrimeQLength()
Prime q |
int |
getPrivateExponent(byte[] exp,
int offset)
|
int |
getPrivateExponentLength()
get private exponent length d = 1/e mod (p-1)(q-1) |
int |
getPublicExponent(byte[] exp,
int offset)
copy the exponent into the byte array and return the exponent length in bytes. |
int |
getPublicExponentLength()
get public exponent length e |
short |
getSize()
get Key length in bits |
byte |
getType()
Get key type |
boolean |
isInitialized()
Check initialization state of key |
boolean |
RSAEquals(RSAKey k,
byte type)
Return true if key is equal to "this" key. |
void |
setCrtCoefficient(byte[] crtCo,
int offset,
int length)
1/q mod p |
void |
setDebug()
turn on debugging |
void |
setModulus(byte[] mod,
int offset,
int len)
Store the modulus as restricted by our size. |
void |
setPrimeExponentP(byte[] pExpP,
int offset,
int length)
d mod(p - 1) |
void |
setPrimeExponentQ(byte[] pExpQ,
int offset,
int length)
d mod(q - 1) |
void |
setPrimeP(byte[] prP,
int offset,
int length)
|
void |
setPrimeQ(byte[] prQ,
int offset,
int length)
|
void |
setPrivateExponent(byte[] exp,
int offset,
int len)
|
void |
setPublicExponent(byte[] exp,
int offset,
int len)
Store the exponent as restricted by our size. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RSAKey(byte type, short len)
Method Detail |
public java.lang.String getAlgorithmName()
public void setDebug()
public void clearDebug()
public boolean isInitialized()
public void clearKey()
public short getSize()
public int getLength()
public byte getType()
public boolean equals(jxta.security.publickey.RSAPrivateKey key)
public boolean equals(jxta.security.publickey.RSAPublicKey key)
public boolean RSAEquals(RSAKey k, byte type)
public int getPublicExponentLength()
public int getPrivateExponentLength()
public int getModulusLength()
public int getPrimePLength()
public int getPrimeQLength()
public int getPrimeExponentPLength()
public int getPrimeExponentQLength()
public int getCrtCoefficientLength()
public void setPublicExponent(byte[] exp, int offset, int len) throws jxta.security.exceptions.CryptoException
public void setPrivateExponent(byte[] exp, int offset, int len) throws jxta.security.exceptions.CryptoException
public void setModulus(byte[] mod, int offset, int len) throws jxta.security.exceptions.CryptoException
public void setPrimeP(byte[] prP, int offset, int length) throws jxta.security.exceptions.CryptoException
public void setPrimeQ(byte[] prQ, int offset, int length) throws jxta.security.exceptions.CryptoException
public void setPrimeExponentP(byte[] pExpP, int offset, int length) throws jxta.security.exceptions.CryptoException
public void setPrimeExponentQ(byte[] pExpQ, int offset, int length) throws jxta.security.exceptions.CryptoException
public void setCrtCoefficient(byte[] crtCo, int offset, int length) throws jxta.security.exceptions.CryptoException
public int getPublicExponent(byte[] exp, int offset)
public int getPrivateExponent(byte[] exp, int offset)
public int getModulus(byte[] mod, int offset)
public int getPrimeP(byte[] prP, int offset)
public int getPrimeQ(byte[] prQ, int offset)
public int getPrimeExponentP(byte[] pExpP, int offset)
public int getPrimeExponentQ(byte[] pExpQ, int offset)
public int getCrtCoefficient(byte[] crtCo, int offset)
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |