public class JazzFormAuthClient extends OslcClient
OslcClient.OAuthHttpPool
httpClient
Constructor and Description |
---|
JazzFormAuthClient() |
JazzFormAuthClient(String url,
String user,
String password)
Create a new Jazz Form Auth client for the given URL, user and password
|
JazzFormAuthClient(String url,
String authUrl,
String user,
String password)
Create a new Jazz Form Auth client for the given URL, user and password
|
Modifier and Type | Method and Description |
---|---|
int |
formLogin()
Deprecated.
Use
login() . |
String |
getAuthUrl() |
String |
getPassword() |
String |
getProject() |
String |
getUrl() |
String |
getUser() |
int |
login()
Executes the sequence of HTTP requests to perform a form login to a Jazz server
|
void |
setAuthUrl(String authUrl) |
void |
setPassword(String password) |
void |
setProject(String project) |
void |
setUrl(String url) |
void |
setUser(String user) |
createResource, createResource, deleteResource, getClientConfig, getClientPool, getConfiguredSecureSocketProtocol, getHttpClient, getQueryResource, getResource, getResource, getResource, getResource, lookupCreationFactory, lookupCreationFactory, lookupCreationFactoryResource, lookupCreationFactoryResource, lookupQueryCapability, lookupServiceProviderUrl, setConfiguredSecureSocketProtocol, updateResource, updateResource, updateResource
public JazzFormAuthClient()
public JazzFormAuthClient(String url, String user, String password)
url
- - the URL of the Jazz server, including the web app contextuser
- password
- public JazzFormAuthClient(String url, String authUrl, String user, String password)
url
- - the URL of the Jazz server, including the web app contextauthUrl
- - the base URL to use for authentication. This is normally the
application base URL for RQM and RTC and is the JTS application URL for fronting
applications like RRC and DM.user
- password
- public String getUrl()
public void setUrl(String url)
public String getAuthUrl()
public void setAuthUrl(String authUrl)
public String getProject()
public void setProject(String project)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public int login() throws JazzAuthFailedException, JazzAuthErrorException, org.apache.http.client.ClientProtocolException, IOException
JazzAuthFailedException
JazzAuthErrorException
IOException
org.apache.http.client.ClientProtocolException
@Deprecated public int formLogin() throws JazzAuthFailedException, JazzAuthErrorException
login()
.JazzAuthFailedException
JazzAuthErrorException
Copyright © 2020. All Rights Reserved.