|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlrpc.XmlRpcClient
pk.edu.niit.clarens.client.ClarensClient
A xmlrpc client for use with clarens servers. The client handles
the clarens xmlrpc authentication. The constructor merely sets up the
remote connection. The connection is not actually established until
the connect() method is called. The private key of the user must
be unencrypted. Both PKCS#8 and traditional openssl private keys can be
used.
| Field Summary |
| Fields inherited from class org.apache.xmlrpc.XmlRpcClient |
asyncWorkers, pool, url, workers |
| Constructor Summary | |
ClarensClient(java.lang.String url)
Constructor. |
|
ClarensClient(java.lang.String url,
java.lang.String certFile,
java.lang.String keyFile)
Constructor. |
|
| Method Summary | |
boolean |
connect()
Connect to the remote server. |
java.lang.String |
getClientCertFile()
Get the location of the client certificate. |
java.lang.String |
getClientPrivateKeyFile()
Get the value of the clientPrivateKeyFile property |
boolean |
isConnected()
Indicates if the client has made a successful authenticated connection to the server. |
void |
loadCertificate()
Load the client certificate and private key. |
void |
setClientCertFile(java.lang.String clientCertFile)
Set the location of the client certificate. |
void |
setClientPrivateKeyFile(java.lang.String clientPrivateKeyFile)
Set the location of the client's private key file. |
| Methods inherited from class org.apache.xmlrpc.XmlRpcClient |
execute, executeAsync, getURL, main, setBasicAuthentication |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClarensClient(java.lang.String url,
java.lang.String certFile,
java.lang.String keyFile)
throws java.lang.Exception
url - The URL for the remote server.certFile - The path to the file containing the client certificate.keyFile - The path to the file containing the client's private key.
public ClarensClient(java.lang.String url)
throws java.lang.Exception
url - The URL for the remote server.| Method Detail |
public void loadCertificate()
throws java.lang.Exception
java.lang.Exception - A generic exception is thrown when an error occurs.public boolean connect()
public void setClientCertFile(java.lang.String clientCertFile)
loadCertificate()
clientCertFile - The name of the file containing the client
certificate.public java.lang.String getClientCertFile()
public void setClientPrivateKeyFile(java.lang.String clientPrivateKeyFile)
loadCertificate()
clientPrivateKeyFile - The name of the file containing the
client's private key.public java.lang.String getClientPrivateKeyFile()
public boolean isConnected()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||