Class ConstructedDEREncoder

java.lang.Object
org.ldaptive.asn1.AbstractDERType
org.ldaptive.asn1.ConstructedDEREncoder
All Implemented Interfaces:
DEREncoder

public class ConstructedDEREncoder extends AbstractDERType implements DEREncoder
Encodes constructed types to their DER format.
  • Field Details

    • derEncoders

      private final DEREncoder[] derEncoders
      Encoders in this sequence.
  • Constructor Details

    • ConstructedDEREncoder

      public ConstructedDEREncoder(DERTag tag, DEREncoder... encoders)
      Creates a new sequence encoder.
      Parameters:
      tag - der tag associated with this type
      encoders - to encode in this sequence
  • Method Details

    • encode

      public byte[] encode()
      Description copied from interface: DEREncoder
      Encode this object into it's DER type.
      Specified by:
      encode in interface DEREncoder
      Returns:
      DER encoded object