public class Targets extends ASN1Object
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
,
TargetInformation
Constructor and Description |
---|
Targets(Target[] targets)
Constructor from given targets.
|
Modifier and Type | Method and Description |
---|---|
static Targets |
getInstance(java.lang.Object obj)
Creates an instance of a Targets from the given object.
|
Target[] |
getTargets()
Returns the targets in a
Vector . |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public static Targets getInstance(java.lang.Object obj)
obj
can be a Targets or a ASN1Sequence
obj
- The object.java.lang.IllegalArgumentException
- if the given object cannot be
interpreted as Target.public Target[] getTargets()
Vector
.
The vector is cloned before it is returned.
public ASN1Primitive toASN1Primitive()
Targets ::= SEQUENCE OF Target
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object