|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.bouncycastle.asn1.ASN1Encodable org.gudy.bouncycastle.asn1.x509.Targets
public class Targets
Targets structure used in target information extension for attribute certificates from RFC 3281.
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
Field Summary |
---|
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
BER, DER |
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. |
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Targets(Target[] targets)
The vector is copied.
targets
- A Vector
of Target
s.
IllegalArgumentException
- if the vector contains not only Targets.Target
Method Detail |
---|
public 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 ASN1Encodable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |