Class CertOrEncCert

java.lang.Object
org.mozilla.jss.pkix.cmmf.CertOrEncCert
All Implemented Interfaces:
ASN1Value

public class CertOrEncCert extends Object implements ASN1Value
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private ANY
     
    (package private) byte[]
     
    static final Tag
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CertOrEncCert(byte[] encodedCert)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Write this value's DER encoding to an output stream using its own base tag.
    void
    encode(Tag implicitTag, OutputStream ostream)
    Write this value's DER encoding to an output stream using an implicit tag.
    Returns the base tag for this type, not counting any tags that may be imposed on it by its context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • certificate

      private ANY certificate
    • encoding

      byte[] encoding
    • TAG

      public static final Tag TAG
  • Constructor Details

  • Method Details

    • getTag

      public Tag getTag()
      Description copied from interface: ASN1Value
      Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
      Specified by:
      getTag in interface ASN1Value
      Returns:
      Base tag.
    • encode

      public void encode(OutputStream ostream) throws IOException
      Description copied from interface: ASN1Value
      Write this value's DER encoding to an output stream using its own base tag.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.
    • encode

      public void encode(Tag implicitTag, OutputStream ostream) throws IOException
      Description copied from interface: ASN1Value
      Write this value's DER encoding to an output stream using an implicit tag.
      Specified by:
      encode in interface ASN1Value
      Parameters:
      implicitTag - This parameter is ignored, because a CHOICE cannot have an implicit tag.
      ostream - Output stream.
      Throws:
      IOException - If an error occurred.