public class TargetInformation extends ASN1Object
SEQUENCE OF Targets
Modifier and Type | Field and Description |
---|---|
private ASN1Sequence |
targets |
Modifier | Constructor and Description |
---|---|
private |
TargetInformation(ASN1Sequence seq)
Constructor from a ASN1Sequence.
|
|
TargetInformation(Target[] targets)
According to RFC 3281 only one targets element must be produced.
|
|
TargetInformation(Targets targets)
Constructs a target information from a single targets element.
|
Modifier and Type | Method and Description |
---|---|
static TargetInformation |
getInstance(Object obj)
Creates an instance of a TargetInformation from the given object.
|
Targets[] |
getTargetsObjects()
Returns the targets in this target information extension.
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private ASN1Sequence targets
private TargetInformation(ASN1Sequence seq)
seq
- The ASN1Sequence.IllegalArgumentException
- if the sequence does not contain
correctly encoded Targets elements.public TargetInformation(Targets targets)
targets
- A Targets instance.public TargetInformation(Target[] targets)
targets
- An array with Targets
.public static TargetInformation getInstance(Object obj)
obj
can be a TargetInformation or a ASN1Sequence
obj
- The object.IllegalArgumentException
- if the given object cannot be
interpreted as TargetInformation.public Targets[] getTargetsObjects()
public ASN1Primitive toASN1Primitive()
SEQUENCE OF Targets
According to RFC 3281 only one targets element must be produced. If
multiple targets are given in the constructor they are merged into one
targets element. If this was produced from a
ASN1Sequence
the encoding is kept.
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object