|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.TargetInformation
Target information extension for attributes certificates according to RFC 3281. SEQUENCE OF Targets
Constructor Summary | |
TargetInformation(Target[] targets)
According to RFC 3281 only one targets element must be produced. |
|
TargetInformation(Targets targets)
Constructs a target information from a single targets element. |
Method Summary | |
static TargetInformation |
getInstance(java.lang.Object obj)
Creates an instance of a TargetInformation from the given object. |
Targets[] |
getTargetsObjects()
Returns the targets in this target information extension. |
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TargetInformation(Targets targets)
targets
- A Targets instance.public TargetInformation(Target[] targets)
targets
- An array with Targets
.Method Detail |
public static TargetInformation getInstance(java.lang.Object obj)
obj can be a TargetInformation or a ASN1Sequence
obj
- The object.
java.lang.IllegalArgumentException
- if the given object cannot be
interpreted as TargetInformation.public Targets[] getTargetsObjects()
public ASN1Primitive toASN1Primitive()
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.
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |