|
Bouncy Castle Cryptography 1.50 | ||||||||
| 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.Target
public class Target
Target structure used in target information extension for attribute certificates from RFC 3281.
Target ::= CHOICE {
targetName [0] GeneralName,
targetGroup [1] GeneralName,
targetCert [2] TargetCert
}
The targetCert field is currently not supported and must not be used according to RFC 3281.
| Field Summary | |
|---|---|
static int |
targetGroup
|
static int |
targetName
|
| Constructor Summary | |
|---|---|
Target(int type,
GeneralName name)
Constructor from given details. |
|
| Method Summary | |
|---|---|
static Target |
getInstance(java.lang.Object obj)
Creates an instance of a Target from the given object. |
GeneralName |
getTargetGroup()
|
GeneralName |
getTargetName()
|
ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream. |
| Methods inherited from class org.bouncycastle.asn1.ASN1Object |
|---|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int targetName
public static final int targetGroup
| Constructor Detail |
|---|
public Target(int type,
GeneralName name)
Exactly one of the parameters must be not null.
type - the choice type to apply to the name.name - the general name.
java.lang.IllegalArgumentException - if type is invalid.| Method Detail |
|---|
public static Target getInstance(java.lang.Object obj)
obj can be a Target or a ASN1TaggedObject
obj - The object.
java.lang.IllegalArgumentException - if the given object cannot be
interpreted as Target.public GeneralName getTargetGroup()
public GeneralName getTargetName()
public ASN1Primitive toASN1Primitive()
Target ::= CHOICE {
targetName [0] GeneralName,
targetGroup [1] GeneralName,
targetCert [2] TargetCert
}
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||