|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.ac.AttCertIssuer
public class AttCertIssuer
This class represents the AttCertIssuer ASN.1 construct. Set CHOICE value to either GENERALNAMES_CID, or V1FORM_CID (the same as GENERALNAMES_CID), or V2FORM_CID, if you provide both v1form and v2form objects to the constructor.
Field Summary | |
---|---|
protected int |
CHOICE
|
static int |
GENERALNAMES_CID
|
protected GeneralNames |
v1Form
|
static int |
V1FORM_CID
|
protected V2Form |
v2Form
|
static int |
V2FORM_CID
|
Constructor Summary | |
---|---|
protected |
AttCertIssuer()
|
|
AttCertIssuer(ASN1Object ao)
This constructor builds AttCertIssuer from ASN1Object. |
|
AttCertIssuer(GeneralNames v1Form,
V2Form v2Form)
This constructor builds an object with the V1Form (GeneralNames) or V2Form specified. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
decode(ASN1Object ao)
This method decodes a given ASN1Object and sets the AttCertIssuer from the content of that object. |
int |
getChoice()
Returns the CHOICE setting. |
GeneralNames |
getV1Form()
Returns the value for V1 encoding (GeneralNames choice). |
V2Form |
getV2Form()
Returns the value for V2 encoding (V2Form choice). |
void |
setChoice(int choice)
Sets the CHOICE setting. |
void |
setV1Form(GeneralNames v1)
Sets the value for V1 encoding and flips the CHOICE to GENERALNAMES_CID, if the value is non-null, and leaves unchanged if the value is set to null. |
void |
setV2Form(V2Form v2)
Sets the value for V2 encoding and flips the CHOICE to V2FORM_CID, if the value is non-null, and leaves unchanged if the value is set to null. |
ASN1Object |
toASN1Object()
This method returns the ASN1Object of AttCertIssuer construct. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String ident)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GENERALNAMES_CID
public static final int V1FORM_CID
public static final int V2FORM_CID
protected int CHOICE
protected GeneralNames v1Form
protected V2Form v2Form
Constructor Detail |
---|
protected AttCertIssuer()
public AttCertIssuer(ASN1Object ao) throws CodingException
ao
- - the ASN1Object of AttCertIssuer construct
CodingException
public AttCertIssuer(GeneralNames v1Form, V2Form v2Form)
v1Form
- is the GeneralNames of the issuerv2Form
- is the V2Form construct, containing the issuer informationMethod Detail |
---|
public int getChoice()
setChoice(int)
public void setChoice(int choice)
Note that the CHOICE is set automatically after decoding a BER and if you pass at least one non-null parameter to the constructor.
the
- integer value for CHOICEpublic GeneralNames getV1Form()
public void setV1Form(GeneralNames v1)
v1
- - the GeneralNames of the issuer; can be nullpublic V2Form getV2Form()
public void setV2Form(V2Form v2)
v2
- - the V2Form of the issuer; can be nullpublic ASN1Object toASN1Object() throws CodingException
Whether the tagging is explicit or implicit, depends on AttributeCertificate.USE_IMPLICIT_ENCODING.
CodingException
AttributeCertificate.USE_IMPLICIT_ENCODING
public void decode(ASN1Object ao) throws CodingException
ao
- - the ASN1Object of AttCertIssuer
CodingException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String ident)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |