|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.SignatureSpi
|
+--java.security.Signature
|
+--com.ibm.crypto.provider.SHA1withDSA
| Fields inherited from class java.security.Signature |
SIGN,
state,
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,
getParameter,
getProvider,
initSign,
initSign,
initVerify,
setParameter,
setParameter,
sign,
sign,
update,
update,
update,
verify |
| Methods inherited from class java.security.SignatureSpi |
engineInitSign,
engineSetParameter,
engineSign |
| 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.
protected void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
privateKey - PrivateKey the key to be used when signing
protected void engineInitVerify(PublicKey publicKey)
throws InvalidKeyException
publicKey - PublicKey the key to be used when verifying
protected void engineSetParameter(String param,
Object value)
throws InvalidParameterException
param - String the parameter namevalue - Object the parameter value
protected byte[] engineSign()
throws SignatureException
protected void engineUpdate(byte b)
throws SignatureException
b - byte the extra byte to be signed.
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
protected boolean engineVerify(byte[] sigBytes)
throws SignatureException
sigBytes - byte[] the signature bytes to verifypublic String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||