|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.portal.wac.WAClient
public class WAClient
The class offers methods to enable a using program/class to act as a client to a Web Security Service (WSS) as specified in GDI-NRW. This implementation just supports authentication through sessionIDs and user/password. If other authentication mechanisms are needed this class should be extended by defining additional performDoService methods.
Constructor Summary | |
---|---|
WAClient(String host,
String path)
The constructor assumes that the the certificate to be used is set by starting the java VM using -Djavax.net.ssl.trustStore parameter. |
|
WAClient(String host,
String path,
int port)
The constructor assumes that the the certificate to be used is set by starting the java VM using -Djavax.net.ssl.trustStore parameter. |
|
WAClient(String host,
String path,
int port,
String trustStore)
|
Method Summary | |
---|---|
String |
getContentType()
returns the name of the content type of the result to the last performed request |
Document |
performCloseSession(String sessionID)
closes a Session by sending a CloseSession request against the WSS that is assigned to a client. |
InputStream |
performDoService(String request,
String sessionID)
performs a DoService request against the WSS that is assigned to a client. |
InputStream |
performDoService(String request,
String user,
String password)
performs a DoService request against the WSS that is assigned to a client. |
Document |
performGetCapabilities()
performs a GetCapabilities request against the WSS that is assigned to a client |
String |
performGetSession(String user,
String password)
performs a GetSession request against the WSS that is assigned to a client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WAClient(String host, String path)
host
- path
- public WAClient(String host, String path, int port)
host
- path
- port
- public WAClient(String host, String path, int port, String trustStore)
host
- path
- port
- trustStore
- Method Detail |
---|
public String getContentType()
public Document performGetCapabilities() throws WACException
WACException
public String performGetSession(String user, String password) throws WACException
user
- name of the user who like to get a sessionpassword
- password of the user
WACException
public Document performCloseSession(String sessionID) throws WACException
sessionID
-
WACException
public InputStream performDoService(String request, String user, String password) throws WACException
request
- request to performuser
- name of the user who like to get a sessionpassword
- password of the user
WACException
performDoService(String, String)
public InputStream performDoService(String request, String sessionID) throws WACException
request
- request to performsessionID
- id to authentificate a user
WACException
performDoService(String, String, String)
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net