Examples of ASN1OpenType


Examples of codec.asn1.ASN1OpenType

    public ErrorMessage()
    {
        super(2);

        oid_           = new ASN1ObjectIdentifier();
        parameter_     = new ASN1OpenType(new ErrorResolver(oid_));

        add(oid_);
        add(parameter_);
    }
View Full Code Here

Examples of codec.asn1.ASN1OpenType

     */
    public GeneralName() {
  super();

  otherNameID_ = new ASN1ObjectIdentifier();
  otherNameValue_ = new ASN1OpenType();

  otherNameValueTag_ = new ASN1TaggedType(0, otherNameValue_, true, false);

  otherNameSequence_ = new ASN1Sequence();
  otherNameSequence_.add(otherNameID_);
View Full Code Here

Examples of codec.asn1.ASN1OpenType

     *                registry shall be used.
     */
    public ContentInfo(OIDRegistry registry) {
  super(2);

  ASN1OpenType ot;

  if (registry == null) {
      registry = PKCSRegistry.getDefaultRegistry();
  }
  contentType_ = new ASN1ObjectIdentifier();
  ot = new ASN1OpenType(registry, contentType_);
  content_ = new ASN1TaggedType(0, ot, true, true);

  add(contentType_);
  add(content_);
    }
View Full Code Here

Examples of codec.asn1.ASN1OpenType

     */
    public void decode(Decoder decoder) throws ASN1Exception, IOException {
  super.decode(decoder);

  ASN1Type t;
  ASN1OpenType o;

  if (!content_.isOptional()) {
      t = content_.getInnerType();

      if (t instanceof ASN1OpenType) {
    o = (ASN1OpenType) t;
    content_.setInnerType(o.getInnerType());
      }
  }
    }
View Full Code Here

Examples of org.apache.harmony.security.asn1.ASN1OpenType

     * AttributeValue ::= ANY DEFINED BY AttributeType
     *
     */
    public static ASN1Sequence getASN1(InformationObjectSet set) {
        ASN1OpenType.Id id = new ASN1OpenType.Id();
        ASN1OpenType any = new ASN1OpenType(id, set);

        return new ASN1Sequence(new ASN1Type[] { id, new ASN1SetOf(any) });
    }
View Full Code Here

Examples of org.apache.harmony.security.asn1.ASN1OpenType

     * AttributeValue ::= ANY DEFINED BY AttributeType
     *
     */
    public static ASN1Sequence getASN1(InformationObjectSet set) {
        ASN1OpenType.Id id = new ASN1OpenType.Id();
        ASN1OpenType any = new ASN1OpenType(id, set);

        return new ASN1Sequence(new ASN1Type[] { id, new ASN1SetOf(any) });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.