|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxta.security.impl.signature.RSASignature
Fields inherited from interface jxta.security.signature.Signature |
ALG_NULL,
ALG_RSA_MD5_PKCS1,
ALG_RSA_SHA_PKCS1,
MODE_SIGN,
MODE_VERIFY,
name |
Constructor Summary | |
RSASignature()
// constructor |
|
RSASignature(jxta.security.publickey.PublicKeyAlgorithm rsaAlg,
RSAKey theKey,
byte theType,
jxta.security.hash.Hash theDigest)
constructor |
Method Summary | |
void |
clearDebug()
turn off debugging |
byte |
getAlgorithm()
// Algorithm type |
java.lang.String |
getAlgorithmName()
// Algorithm name |
void |
init(byte theMode)
initialize the Signature mode - sign or verify |
void |
setDebug()
turn on debugging |
byte[] |
sign(byte[] inbuf,
int offset,
int inLength)
Signs the hash generated from the last(only) buffer of data. |
void |
update(byte[] inbuf,
int offset,
int length)
updates data to be signed. |
boolean |
verify(byte[] inBuf,
int inOffset,
int inLength,
byte[] sigBuf,
int sigOffset,
int sigLength)
Verifies a signature for last/only inBuf against the signature in sigBuf. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RSASignature()
public RSASignature(jxta.security.publickey.PublicKeyAlgorithm rsaAlg, RSAKey theKey, byte theType, jxta.security.hash.Hash theDigest)
Method Detail |
public java.lang.String getAlgorithmName()
public byte getAlgorithm()
public void setDebug()
public void clearDebug()
public void init(byte theMode) throws jxta.security.exceptions.CryptoException
public void update(byte[] inbuf, int offset, int length) throws jxta.security.exceptions.CryptoException
public byte[] sign(byte[] inbuf, int offset, int inLength) throws jxta.security.exceptions.CryptoException
public boolean verify(byte[] inBuf, int inOffset, int inLength, byte[] sigBuf, int sigOffset, int sigLength) throws jxta.security.exceptions.CryptoException
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |