|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.SignatureSpi
com.ibm.crypto.provider.SHA1withDSA
public class SHA1withDSA
| Field Summary |
|---|
| 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.SignatureSpi |
|---|
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SHA1withDSA()
throws NoSuchAlgorithmException,
NoSuchProviderException
NoSuchAlgorithmException
NoSuchProviderException| Method Detail |
|---|
protected Object engineGetParameter(String param)
throws InvalidParameterException
engineGetParameter in class SignatureSpiparam - String the parameter name.
InvalidParameterException - if the specified parameter name is invalid
protected void engineInitSign(PrivateKey privateKey)
throws InvalidKeyException
engineInitSign in class SignatureSpiprivateKey - 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
engineInitVerify in class SignatureSpipublicKey - 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
engineSetParameter in class SignatureSpiparam - 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
engineSign in class SignatureSpiSignatureException - if the engine is not initialized properly
protected void engineUpdate(byte b)
throws SignatureException
engineUpdate in class SignatureSpib - 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
engineUpdate in class SignatureSpibuffer - 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
engineVerify in class SignatureSpisigBytes - 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()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||