public class Target extends ASN1Encodable implements ASN1Choice
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.
Modifier and Type | Field and Description |
---|---|
static int |
targetGroup |
static int |
targetName |
private GeneralName |
targGroup |
private GeneralName |
targName |
BER, DER
Modifier | Constructor and Description |
---|---|
private |
Target(ASN1TaggedObject tagObj)
Constructor from ASN1TaggedObject.
|
|
Target(int type,
GeneralName name)
Constructor from given details.
|
Modifier and Type | Method and Description |
---|---|
static Target |
getInstance(java.lang.Object obj)
Creates an instance of a Target from the given object.
|
GeneralName |
getTargetGroup() |
GeneralName |
getTargetName() |
DERObject |
toASN1Object()
Produce an object suitable for an ASN1OutputStream.
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public static final int targetName
public static final int targetGroup
private GeneralName targName
private GeneralName targGroup
private Target(ASN1TaggedObject tagObj)
tagObj
- The tagged object.java.lang.IllegalArgumentException
- if the encoding is wrong.public Target(int type, GeneralName name)
null
.type
- the choice type to apply to the name.name
- the general name.java.lang.IllegalArgumentException
- if type is invalid.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 DERObject toASN1Object()
Target ::= CHOICE { targetName [0] GeneralName, targetGroup [1] GeneralName, targetCert [2] TargetCert }
toASN1Object
in class ASN1Encodable
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.