org.bouncycastle.asn1.x509
public class Targets extends ASN1Encodable
Targets ::= SEQUENCE OF Target
Target ::= CHOICE {
targetName [0] GeneralName,
targetGroup [1] GeneralName,
targetCert [2] TargetCert
}
TargetCert ::= SEQUENCE {
targetCertificate IssuerSerial,
targetName GeneralName OPTIONAL,
certDigestInfo ObjectDigestInfo OPTIONAL
}
See Also: Target TargetInformation
| Constructor Summary | |
|---|---|
| Targets(Target[] targets)
Constructor from given targets.
| |
| Method Summary | |
|---|---|
| static Targets | getInstance(Object obj)
Creates an instance of a Targets from the given object.
|
| Target[] | getTargets()
Returns the targets in a Vector.
|
| DERObject | toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
The vector is copied.
Parameters: targets A Vector of Targets.
Throws: IllegalArgumentException if the vector contains not only Targets.
See Also: Target
obj can be a Targets or a ASN1Sequence
Parameters: obj The object.
Returns: A Targets instance.
Throws: IllegalArgumentException if the given object cannot be interpreted as Target.
Vector.
The vector is cloned before it is returned.
Returns: Returns the targets.
Targets ::= SEQUENCE OF Target
Returns: a DERObject