org.bouncycastle.asn1.x509
public class TargetInformation extends ASN1Encodable
SEQUENCE OF Targets
Constructor Summary | |
---|---|
TargetInformation(Targets targets)
Constructs a target information from a single targets element.
| |
TargetInformation(Target[] targets)
According to RFC 3281 only one targets element must be produced. |
Method Summary | |
---|---|
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.
|
DERObject | toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
Parameters: targets A Targets instance.
Parameters: targets An array with Targets.
obj
can be a TargetInformation or a ASN1Sequence
Parameters: obj The object.
Returns: A TargetInformation instance.
Throws: IllegalArgumentException if the given object cannot be interpreted as TargetInformation.
Returns: Returns the targets.
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.
Returns: a DERObject