Class ContentInfo

java.lang.Object
org.apache.kerby.asn1.type.Asn1Object
org.apache.kerby.asn1.type.Asn1Encodeable
org.apache.kerby.asn1.type.AbstractAsn1Type<org.apache.kerby.asn1.type.Asn1CollectionType>
org.apache.kerby.asn1.type.Asn1CollectionType
org.apache.kerby.asn1.type.Asn1SequenceType
org.apache.kerby.cms.type.ContentInfo
All Implemented Interfaces:
org.apache.kerby.asn1.Asn1Dumpable, org.apache.kerby.asn1.type.Asn1Type
Direct Known Subclasses:
CompressedContentInfo, EnvelopedContentInfo, SignedContentInfo

public class ContentInfo extends org.apache.kerby.asn1.type.Asn1SequenceType
Ref. RFC 5652
 ContentInfo ::= SEQUENCE {
     contentType ContentType,
     content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL
 }

 ContentType ::= OBJECT IDENTIFIER
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static enum 
     

    Nested classes/interfaces inherited from interface org.apache.kerby.asn1.type.Asn1Type

    org.apache.kerby.asn1.type.Asn1Type.EncodingType
  • Field Summary

    Fields inherited from class org.apache.kerby.asn1.type.Asn1Encodeable

    bodyLength, outerEncodeable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends org.apache.kerby.asn1.type.Asn1Type>
    T
     
     
    void
    setContent(org.apache.kerby.asn1.type.Asn1Type content)
     
    void
    setContentType(String contentType)
     

    Methods inherited from class org.apache.kerby.asn1.type.Asn1SequenceType

    createCollection

    Methods inherited from class org.apache.kerby.asn1.type.Asn1CollectionType

    decodeBody, dumpWith, encodeBody, encodingBodyLength, getFieldAs, getFieldAsAny, getFieldAsInteger, getFieldAsObjId, getFieldAsOctets, getFieldAsString, setAnyFieldValueType, setFieldAs, setFieldAsAny, setFieldAsInt, setFieldAsInt, setFieldAsObjId, setFieldAsOctets

    Methods inherited from class org.apache.kerby.asn1.type.AbstractAsn1Type

    getValue, setValue, toString

    Methods inherited from class org.apache.kerby.asn1.type.Asn1Encodeable

    decode, decode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, isBER, isCER, isDefinitiveLength, isDER, isImplicit, isPrimitive, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitive

    Methods inherited from class org.apache.kerby.asn1.type.Asn1Object

    isAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tag, tagFlags, tagNo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.kerby.asn1.type.Asn1Type

    tag
  • Constructor Details

    • ContentInfo

      public ContentInfo()
  • Method Details

    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
    • getContentAs

      public <T extends org.apache.kerby.asn1.type.Asn1Type> T getContentAs(Class<T> t)
    • setContent

      public void setContent(org.apache.kerby.asn1.type.Asn1Type content)