Package org.ldaptive.asn1
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 Summary
Fields Modifier and Type Field Description private DEREncoder[]
derEncoders
Encoders in this sequence.
-
Constructor Summary
Constructors Constructor Description ConstructedDEREncoder(DERTag tag, DEREncoder... encoders)
Creates a new sequence encoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encode()
Encode this object into its DER type.-
Methods inherited from class org.ldaptive.asn1.AbstractDERType
encode
-
-
-
-
Field Detail
-
derEncoders
private final DEREncoder[] derEncoders
Encoders in this sequence.
-
-
Constructor Detail
-
ConstructedDEREncoder
public ConstructedDEREncoder(DERTag tag, DEREncoder... encoders)
Creates a new sequence encoder.- Parameters:
tag
- der tag associated with this typeencoders
- to encode in this sequence
-
-
Method Detail
-
encode
public byte[] encode()
Description copied from interface:DEREncoder
Encode this object into its DER type.- Specified by:
encode
in interfaceDEREncoder
- Returns:
- DER encoded object
-
-