|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.crmf.Control | +--com.rsa.certj.crmf.PKIPublicationInfo
This class holds, encodes, and decodes the PKI Publication Info control. It is defined in CRMF. The PKIPublicationInfo control enables subscribers to control the CA's publication of the certificate. It is defined by the following syntax:
PKIPublicationInfo ::= SEQUENCE { action INTEGER { dontPublish (0), pleasePublish (1) }, pubInfos SEQUENCE SIZE (1...MAX) OF SinglePubInfo OPTIONAL } -- pubInfos MUST NOT be presented if action is "dontPublish" -- (if action is "pleasePublish" and pubInfos is omitted, -- "dontCare" is assumed) SinglePubInfo ::= SEQUENCE { pubMethod INTEGER { dontCare (0), x500 (1), web (2), ldap (3) }, pubLocation GeneralName OPTIONAL } |
See Also
Field Summary |
|
static int |
DONT_CARE
This pubMethod option indicates that PKI MAY publish the certificate using whatever means it chooses |
static int |
DONT_PUBLISH
This action option indicates that PKI should not publish the certificate |
static int |
LDAP
This pubMethod option indicates that the requester wishes to enable the CA to make the certificate available in LDAP repository. |
static int |
PLEASE_PUBLISH
This action option indicates that PKI should publish the certificate |
static int |
WEB
This pubMethod option indicates that the requester wishes to enable the CA to make the certificate available in WEB repository. |
static int |
X500
This pubMethod option indicates that the requester wishes to enable the CA to make the certificate available in X500 repository. |
Fields inherited from class com.rsa.certj.crmf.Control |
AUTHENTICATOR, NON_STANDARD, OLD_CERT_ID, PKI_ARCHIVE_OPTIONS, PKI_PUBLICATION_INFO, PROTOCOL_ENCR_KEY, REG_TOKEN |
Constructor Summary |
|
PKIPublicationInfo()
Constructs an empty |
Method Summary |
|
void |
addSinglePubInfo(int pubMethod,
GeneralName pubLocation)
Adds the SinglePubInfo value |
clone()
Overrides the default |
|
boolean |
equals(Object obj)
Returns true if this object and obj contain the same PKIPublicationInfo, returns false otherwise. |
int |
getAction()
Gets the action value of this object |
getPubLocation(int index)
Gets the pubLocation value of SinglePubInfo at specified index |
|
int |
getPubMethod(int index)
Gets the pubMethod value of SinglePubInfo at specified index |
int |
getSinglePubInfoCount()
Gets the number of SinglePubInfo structures in this object |
void |
setAction(int action)
Sets the action value of this object |
Methods inherited from class com.rsa.certj.crmf.Control |
compareOID, derEncodeControlLen, getControlType, getControlTypeString, getDEREncoding, getDERLen, getInstance, getInstance, getNextBEROffset, getOID, isControlType, setEnvironment |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DONT_PUBLISH
public static final int PLEASE_PUBLISH
public static final int DONT_CARE
public static final int X500
public static final int WEB
public static final int LDAP
Constructor Detail |
public PKIPublicationInfo()
PKIPublicationInfo
object.Method Detail |
public void setAction(int action) throws CRMFException
Parameters
action | One of the |
Throws
CRMFException
- If the passed in value is invalidpublic int getAction()
Returns
action
flags defined in this classpublic void addSinglePubInfo(int pubMethod, GeneralName pubLocation) throws CRMFException
Parameters
pubMethod | One of the | ||
pubLocation | Indicates where the requester would like the certificate to be found; pass NULL if don't want to specify |
Throws
CRMFException
- If the passed in value is invalidpublic int getSinglePubInfoCount()
Returns
public int getPubMethod(int index) throws CRMFException
Parameters
index | Specifies the SinglePubInfo structure |
Returns
Throws
CRMFException
- If specified index is invalidpublic GeneralName getPubLocation(int index) throws CRMFException
Parameters
index | Specifies the SinglePubInfo structure |
Returns
Throws
CRMFException
- If specified index is invalidpublic Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class Control
Returns
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public boolean equals(Object obj)
Overrides
equals
in class Control
Parameters
obj | The instance of PKIPublicationInfo object |
Returns
boolean
that indicates whether
these objects are equal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |