|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.Provider | +--com.rsa.certj.provider.pki.cmp.CMP | +--com.rsa.certj.provider.pki.cmp.CMPDebug
This class collects debugging information while using the CMP class.
Copyright © RSA Security Inc., 2000-2001. All rights reserved.
Fields inherited from class com.rsa.certj.provider.pki.cmp.CMP |
CMP1999, CMP2000, CMPTCP_ERROR_CLIENT, CMPTCP_ERROR_MSGTYPE, CMPTCP_ERROR_NONE, CMPTCP_ERROR_POLLID, CMPTCP_ERROR_SERVER, CMPTCP_ERROR_VERSION, CMPTCP_FLAGS_CLOSE_CONN, CMPTCP_FLAGS_NO_AUTOPOLL, DEFAULT_CMPTCP_PORT |
Constructor Summary |
|
CMPDebug(String name,
File configFile,
File messageStore)
Constructs a |
Method Summary |
|
void |
saveCertificate(PKIResponseMessage response)
Saves a certificate returned with the response message. |
void |
saveData(byte[] data,
String fileName)
Saves arbitrary data given in data into a file named fileName in the message storage directory. |
void |
saveMessage(byte[] messageBytes,
PKIMessage message,
ProtectInfo protectInfo)
Saves a serialized message into a file in the directory
specified in the constructor |
Methods inherited from class com.rsa.certj.provider.pki.cmp.CMP |
instantiate, setCMPTCPOptions |
Methods inherited from class com.rsa.certj.Provider |
getName, getType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMPDebug(String name, File configFile, File messageStore) throws InvalidParameterException
CMPDebug
object, using a
configFile that is given as a File
.Parameters
name | A | ||
configFile | A dest ,
http.proxy , profile , and
timeoutSecs .
dest is used to specify the location(s) of the
OnSite CMP auto-responder(s).
http.proxy is used to specify
the hostname:port of any HTTP proxies which may exist between
the application and the CMP auto-responder.
profile is used to specify the particular CMP
profile that is implemented by the responder, in anticipation
that there may be subtle differences.
timeoutSecs is used to specify how many seconds
the application should wait before giving up on socket
communication.
For example, the contents of the configuration file might be:
dest=cmptcp://myserver:892 http.proxy=proxy1.mycompany.com:80 http.proxy=proxy2.mycompany.com:80 profile=Keon timoutSecs=3 | ||
messageStore | A |
Throws
InvalidParameterException
- If any
argument is invalid.Method Detail |
public void saveMessage(byte[] messageBytes, PKIMessage message, ProtectInfo protectInfo) throws CMPException
CMPDebug
by
messageStore. This method creates a
descriptive filename.Overrides
saveMessage
in class CMP
Parameters
messageBytes | A | ||
message | A | ||
protectInfo | A |
Throws
CMPException
- If saving the message
fails.public void saveCertificate(PKIResponseMessage response) throws CMPException
Overrides
saveCertificate
in class CMP
Parameters
response | A |
Throws
CMPException
- If saving the certificate
returned fails.public void saveData(byte[] data, String fileName) throws CMPException
Overrides
saveData
in class CMP
Parameters
data | A | ||
fileName | A |
Throws
CMPException
- If saving the data
fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |