IT. Expert System.

Android Reference

DigitalSignature


org.apache.harmony.xnet.provider.jsse

Class DigitalSignature



  • public class DigitalSignature
    extends Object
    This class represents Signature type, as described in TLS v 1.0 Protocol specification, 7.4.3. It allow to init, update and sign hash. Hash algorithm depends on SignatureAlgorithm. select (SignatureAlgorithm) { case anonymous: struct { }; case rsa: digitally-signed struct { opaque md5_hash[16]; opaque sha_hash[20]; }; case dsa: digitally-signed struct { opaque sha_hash[20]; }; } Signature; Digital signing description see in TLS spec., 4.7. (http://www.ietf.org/rfc/rfc2246.txt)
    • Constructor Detail

      • DigitalSignature

        public DigitalSignature(String authType)
        Create Signature type
        Parameters:
        keyExchange -
    • Method Detail

      • init

        public void init(PrivateKey key)
        Initiate Signature type by private key
        Parameters:
        key -
      • init

        public void init(Certificate cert)
        Initiate Signature type by certificate
        Parameters:
        cert -
      • update

        public void update(byte[] data)
        Update Signature hash
        Parameters:
        data -
      • setMD5

        public void setMD5(byte[] data)
        Sets MD5 hash
        Parameters:
        data -
      • setSHA

        public void setSHA(byte[] data)
        Sets SHA hash
        Parameters:
        data -
      • sign

        public byte[] sign()
        Sign hash
        Returns:
        Signature bytes
      • verifySignature

        public boolean verifySignature(byte[] data)
        Verifies the signature data.
        Parameters:
        data - - the signature bytes
        Returns:
        true if verified


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3248 / . Delta: 0.02300 с