|
||||||||||
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.claymoresystems.provider.RawDSASignature
COM.claymoresystems.provider.DSASignature
public class DSASignature
Field Summary |
---|
Fields inherited from class java.security.Signature |
---|
SIGN, state, UNINITIALIZED, VERIFY |
Fields inherited from class java.security.SignatureSpi |
---|
appRandom |
Constructor Summary | |
---|---|
DSASignature()
|
Method Summary | |
---|---|
protected void |
engineInitSign(java.security.PrivateKey key)
SPI: Initializes this object for signing using the private key |
protected void |
engineInitVerify(java.security.PublicKey key)
SPI: Initializes this object for verification using the given key |
protected byte[] |
engineSign()
Sign the input, following FIPS-186. |
protected void |
engineUpdate(byte b)
SPI: Single byte update |
protected void |
engineUpdate(byte[] b,
int off,
int len)
SPI: Update with a buffer |
protected boolean |
engineVerify(byte[] signature)
SPI: Raw Verify |
Methods inherited from class COM.claymoresystems.provider.RawDSASignature |
---|
engineGetParameter, engineSetParameter |
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, update, verify, verify |
Methods inherited from class java.security.SignatureSpi |
---|
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 DSASignature()
Method Detail |
---|
protected void engineInitVerify(java.security.PublicKey key) throws java.security.InvalidKeyException
engineInitVerify
in class RawDSASignature
key
- the public key
java.security.InvalidKeyException
- if the key class doesn't
implement DSAPublicKeyprotected void engineInitSign(java.security.PrivateKey key) throws java.security.InvalidKeyException
engineInitSign
in class RawDSASignature
key
- the private key
java.security.InvalidKeyException
- if the key class doesn't
implement than DSAPrivateKeyprotected void engineUpdate(byte b) throws java.security.SignatureException
engineUpdate
in class RawDSASignature
java.security.SignatureException
- in case of errorprotected void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException
engineUpdate
in class RawDSASignature
b
- the buffer containing the digestoff
- the offset into the bufferlen
- the length (must be 20)
java.security.SignatureException
- in case of errorprotected byte[] engineSign() throws java.security.SignatureException
engineSign
in class RawDSASignature
java.security.SignatureException
- if the engine isn't initialized
properlyprotected boolean engineVerify(byte[] signature) throws java.security.SignatureException
engineVerify
in class RawDSASignature
java.security.SignatureException
- bad input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |