|
|||||||||||
| 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.SHA1withDSA
| Field Summary |
|---|
| Fields inherited from class java.security.Signature |
|---|
SIGN, UNINITIALIZED, VERIFY |
| Fields inherited from class java.security.SignatureSpi |
|---|
appRandom |
| Constructor Summary | |
|---|---|
SHA1withDSA()
Constructs a new instance of this class. |
|
| Method Summary | |
|---|---|
protected Object |
engineGetParameter(String param)
Deprecated. |
protected void |
engineInitSign(PrivateKey privateKey)
Initialize the receiver with the specified private key, to be used for signing purposes. |
protected void |
engineInitVerify(PublicKey publicKey)
Initialize the receiver with the specified public key, to be used for verification purposes. |
protected void |
engineSetParameter(String param,
Object value)
Deprecated. Replaced with engineSetParameter(AlgorithmParameterSpec) |
protected byte[] |
engineSign()
Answers the signature bytes of the data updated so far. |
protected void |
engineUpdate(byte b)
Update the bytes signed so far with the extra byte provided. |
protected void |
engineUpdate(byte[] buffer,
int offset,
int length)
Update the bytes signed so far with the extra bytes provided. |
protected boolean |
engineVerify(byte[] sigBytes)
Verifies the passed signature. |
String |
toString()
Answers a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.security.Signature |
|---|
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, 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 SHA1withDSA()
throws NoSuchAlgorithmException,
NoSuchProviderException
| Method Detail |
protected Object engineGetParameter(String param)
throws InvalidParameterException
param - String the parameter name.
InvalidParameterException - if the specified parameter name is invalid
protected void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
privateKey - PrivateKey the key to be used when signing
InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)
protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
publicKey - PublicKey the key to be used when verifying
InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)
protected void engineSetParameter(String param,
Object value)
throws InvalidParameterException
param - String the parameter namevalue - Object the parameter value
InvalidParameterException - if the specified parameter name is not valid for the receiver or if it has
been set already
protected byte[] engineSign()
throws SignatureException
SignatureException - if the engine is not initialized properly
protected void engineUpdate(byte b)
throws SignatureException
b - byte the extra byte to be signed.
SignatureException - if the receiver is not initialized properly
protected void engineUpdate(byte[] buffer,
int offset,
int length)
throws SignatureException
buffer - byte[] the extra bytes to be signed.offset - int offset in the buffer where to start getting bytes for signinglength - int how many bytes to get for signing
SignatureException - if the receiver is not initialized properly
protected boolean engineVerify(byte[] sigBytes)
throws SignatureException
sigBytes - byte[] the signature bytes to verify
SignatureException - if the receiver is not initialized
properly or if the key is not encoded properly.public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||