|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.secpod.action.ClientAction
public class ClientAction
This class in an interface to the client for SCAPRepository Web Service
Nested Class Summary | |
---|---|
class |
ClientAction.InstallCert
This class is a Certificate Installer |
static class |
ClientAction.MyHostnameVerifier
This class is a Host Name Verifier |
Constructor Summary | |
---|---|
ClientAction()
|
Method Summary | |
---|---|
void |
connect(java.lang.String urlStr,
java.lang.String password)
This function is used to connect to Web Service. |
void |
getBundle(java.lang.String sessionId,
java.lang.String id,
java.lang.String urlStr)
This function is used to get the bundle zip of all related content for a particular Id. |
void |
getDatastream(java.lang.String sessionId,
java.lang.String id,
java.lang.String urlStr)
This function is used to get the data stream for a particular XCCDF Id. |
void |
getPolicy(java.lang.String sessionId,
java.lang.String urlStr)
This function is used to display policies of a user. |
void |
getPolicycontent(java.lang.String sessionId,
java.lang.String policy,
java.lang.String urlStr)
This function is used to get content for a particular policy of a user. |
void |
getrss(java.lang.String type,
java.lang.String urlStr)
This function is used to get the RSS Feed. |
void |
getXML(java.lang.String sessionId,
java.lang.String id,
java.lang.String urlStr)
This function is used to get the XML content for a particular Id. |
void |
login(java.lang.String username,
java.lang.String password,
java.lang.String urlStr)
This function is used to login to Web Service. |
void |
logout(java.lang.String sessionId,
java.lang.String urlStr)
This function is used to logout a user. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientAction()
Method Detail |
---|
public void connect(java.lang.String urlStr, java.lang.String password)
urlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypassword
- The password to key store file, default is "changeit". This
password is used to call trustCert functionpublic void login(java.lang.String username, java.lang.String password, java.lang.String urlStr)
username
- Username of the userpassword
- Password of the userurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void logout(java.lang.String sessionId, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login.urlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getXML(java.lang.String sessionId, java.lang.String id, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login. This is not
required for free content. If not provided, considered null.id
- The content IdurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getDatastream(java.lang.String sessionId, java.lang.String id, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login. It is
mandatory.id
- The content IdurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getBundle(java.lang.String sessionId, java.lang.String id, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login. This is not
required for free content. If not provided, considered null.id
- The content IdurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getPolicy(java.lang.String sessionId, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login. It is
mandatory.urlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getPolicycontent(java.lang.String sessionId, java.lang.String policy, java.lang.String urlStr)
sessionId
- The session Id of the user provided during login. It is
mandatory.policy
- The policy for which content needs to be downloadedurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repositorypublic void getrss(java.lang.String type, java.lang.String urlStr)
type
- This can be oval, cve, cwe, cpe, xccdf or cceurlStr
- The URL link to the Web Service (In the form
repo-ip/SCAPRepoWebService, where repo-ip is the IP to the
repository
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |