| java.security.Signature org.apache.harmony.security.provider.crypto.SHA1withDSA_SignatureImpl
SHA1withDSA_SignatureImpl | public class SHA1withDSA_SignatureImpl extends Signature (Code) | | |
Method Summary | |
protected Object | engineGetParameter(String param) Deprecated method. | protected void | engineInitSign(PrivateKey privateKey) Initializes this signature object with PrivateKey object
passed as argument to the method. | protected void | engineInitVerify(PublicKey publicKey) Initializes this signature object with PublicKey object
passed as argument to the method. | protected void | engineSetParameter(String param, Object value) | protected byte[] | engineSign() Returns signature bytes as byte array containing
ASN1 representation for two BigInteger objects
which is SEQUENCE of two INTEGERS. | protected void | engineUpdate(byte b) Updates data to sign or to verify. | protected void | engineUpdate(byte[] b, int off, int len) Updates data to sign or to verify. | protected boolean | engineVerify(byte[] sigBytes) Verifies the signature bytes. | protected boolean | engineVerify(byte[] sigBytes, int offset, int length) Verifies the signature bytes. |
engineSign | protected byte[] engineSign() throws SignatureException(Code) | | Returns signature bytes as byte array containing
ASN1 representation for two BigInteger objects
which is SEQUENCE of two INTEGERS.
Length of sequence varies from less than 46 to 48.
Resets object to the state it was in
when previous call to either "initSign" method was called.
byte array containing signature in ASN1 representation throws: SignatureException - if object's state is not SIGN or signature algorithm cannot process data |
engineUpdate | protected void engineUpdate(byte[] b, int off, int len) throws SignatureException(Code) | | Updates data to sign or to verify.
throws: SignatureException - if object was not initialized for signing or verifying |
engineVerify | protected boolean engineVerify(byte[] sigBytes) throws SignatureException(Code) | | Verifies the signature bytes.
true if signature bytes were verified, false otherwise throws: SignatureException - if object's state is not VERIFY orsignature format is not ASN1 representation orsignature algorithm cannot process data |
engineVerify | protected boolean engineVerify(byte[] sigBytes, int offset, int length) throws SignatureException(Code) | | Verifies the signature bytes.
true if signature bytes were verified, false otherwise throws: SignatureException - if object's state is not VERIFY orsignature format is not ASN1 representation orsignature algorithm cannot process data |
Methods inherited from java.security.Signature | public Object clone() throws CloneNotSupportedException(Code)(Java Doc) final public String getAlgorithm()(Code)(Java Doc) public static Signature getInstance(String algorithm) throws NoSuchAlgorithmException(Code)(Java Doc) public static Signature getInstance(String algorithm, String provider) throws NoSuchAlgorithmException, NoSuchProviderException(Code)(Java Doc) public static Signature getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException(Code)(Java Doc) final public Object getParameter(String param) throws InvalidParameterException(Code)(Java Doc) final public AlgorithmParameters getParameters()(Code)(Java Doc) final public Provider getProvider()(Code)(Java Doc) final public void initSign(PrivateKey privateKey) throws InvalidKeyException(Code)(Java Doc) final public void initSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException(Code)(Java Doc) final public void initVerify(PublicKey publicKey) throws InvalidKeyException(Code)(Java Doc) final public void initVerify(Certificate certificate) throws InvalidKeyException(Code)(Java Doc) final public void setParameter(String param, Object value) throws InvalidParameterException(Code)(Java Doc) final public void setParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException(Code)(Java Doc) final public byte[] sign() throws SignatureException(Code)(Java Doc) final public int sign(byte[] outbuf, int offset, int len) throws SignatureException(Code)(Java Doc) public String toString()(Code)(Java Doc) final public void update(byte b) throws SignatureException(Code)(Java Doc) final public void update(byte[] data) throws SignatureException(Code)(Java Doc) final public void update(byte[] data, int off, int len) throws SignatureException(Code)(Java Doc) final public void update(ByteBuffer data) throws SignatureException(Code)(Java Doc) final public boolean verify(byte[] signature) throws SignatureException(Code)(Java Doc) final public boolean verify(byte[] signature, int offset, int length) throws SignatureException(Code)(Java Doc)
|
|
|