|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.security.SignatureSpi
java.security.Signature
com.ibm.crypto.provider.MD2withRSA
This class implements MD2 with RSA
| Field Summary |
|---|
| Fields inherited from class java.security.Signature |
|---|
SIGN, state, UNINITIALIZED, VERIFY |
| Fields inherited from class java.security.SignatureSpi |
|---|
appRandom |
| Constructor Summary | |
|---|---|
MD2withRSA()
Construct a blank RSA object. |
|
| Method Summary | |
|---|---|
protected Object |
engineGetParameter(String key)
Have to implement Signature's abstract method engineGetParameter to be a concrete class. |
protected void |
engineInitSign(PrivateKey privateKey)
Initialize the RSA object with a RSA private key. |
protected void |
engineInitVerify(PublicKey publicKey)
Initialize the RSA object with a RSA public key. |
protected void |
engineSetParameter(String key,
Object param)
Have to implement Signature's abstract method engineSetParameter to be a concrete class. |
protected byte[] |
engineSign()
Get message digest for all the data thus far updated, then sign the message digest. |
protected void |
engineUpdate(byte b)
Update a byte to be signed or verified. |
protected void |
engineUpdate(byte[] data,
int off,
int len)
Update an array of bytes to be signed or verified. |
protected boolean |
engineVerify(byte[] signature)
Verify the signature (compare the result with the message digest). |
| Methods inherited from class java.security.Signature |
|---|
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, verify, verify |
| Methods inherited from class java.security.SignatureSpi |
|---|
engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineVerify |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MD2withRSA()
| Method Detail |
protected void engineSetParameter(String key,
Object param)
protected Object engineGetParameter(String key)
protected void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
privateKey - the RSA private key
InvalidKeyException - if the key is not a valid RSA private
key.
protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
publicKey - the RSA public key
InvalidKeyException - if the key is not a valid RSA public
key.protected void engineUpdate(byte b)
b - the byte to updated.
protected void engineUpdate(byte[] data,
int off,
int len)
data - the bytes to be updated.
protected byte[] engineSign()
throws SignatureException
SignatureException - if the signature object was not
properly initialized, or if another exception occurs.
protected boolean engineVerify(byte[] signature)
throws SignatureException
SignatureException - if the signature object was not
properly initialized, or if another exception occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||