org.bouncycastle.asn1.x509
Class Target
- ASN1Choice, DEREncodable
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.
targetGroup
public static final int targetGroup
targetName
public static final int targetName
Target
public Target(int type,
GeneralName name)
Constructor from given details.
Exactly one of the parameters must be not
null
.
type
- the choice type to apply to the name.name
- the general name.
getInstance
public static Target getInstance(Object obj)
Creates an instance of a Target from the given object.
obj
can be a Target or a
ASN1TaggedObject
toASN1Object
public DERObject toASN1Object()
Produce an object suitable for an ASN1OutputStream.
Returns:
Target ::= CHOICE {
targetName [0] GeneralName,
targetGroup [1] GeneralName,
targetCert [2] TargetCert
}
- toASN1Object in interface ASN1Encodable