IT. Expert System.

Android Reference

ASN1Type


org.apache.harmony.security.asn1

Class ASN1Type

    • Field Detail

      • id

        public final int id
        Integer representation of primitive identifier.
      • constrId

        public final int constrId
        Integer representation of constructed identifier.
    • Constructor Detail

      • ASN1Type

        public ASN1Type(int tagNumber)
        Constructs a primitive, universal ASN.1 type.
        Parameters:
        tagNumber - - ASN.1 tag number
        Throws:
        IllegalArgumentException - - if tagNumber is invalid
      • ASN1Type

        public ASN1Type(int tagClass,
                int tagNumber)
        Constructs an ASN.1 type.
        Parameters:
        tagClass - - tag class. MUST be CLASS_UNIVERSAL, CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE
        tagNumber - - ASN.1 tag number.
        Throws:
        IllegalArgumentException - - if tagClass or tagNumber is invalid
    • Method Detail

      • encode

        public final byte[] encode(Object object)
      • checkTag

        public abstract boolean checkTag(int identifier)
        Tests provided identifier.
        Parameters:
        identifier - identifier to be verified
        Returns:
        true if identifier is associated with this ASN.1 type
      • getDecodedObject

        protected Object getDecodedObject(BerInputStream in)
                                   throws IOException
        Creates decoded object. Derived classes should override this method to provide creation for a selected class of objects during decoding. The default implementation returns an object created by decoding stream.
        Throws:
        IOException
      • encodeASN

        public abstract void encodeASN(BerOutputStream out)
        Encodes ASN.1 type.
      • setEncodingContent

        public abstract void setEncodingContent(BerOutputStream out)
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


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: 837 / . Delta: 0.01545 с