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
}
Target,
TargetInformationBER, DER| Constructor and Description |
|---|
Targets(Target[] targets)
Constructor from given targets.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCodepublic Targets(Target[] targets)
The vector is copied.
targets - A Vector of Targets.IllegalArgumentException - if the vector contains not only Targets.Targetpublic static Targets getInstance(Object obj)
obj can be a Targets or a ASN1Sequence
obj - The object.IllegalArgumentException - if the given object cannot be
interpreted as Target.public Target[] getTargets()
Vector.
The vector is cloned before it is returned.
public DERObject toASN1Object()
Targets ::= SEQUENCE OF Target
toASN1Object in class ASN1EncodableCopyright © 2015. All rights reserved.