public class CASClient extends Object
| Constructor and Description |
|---|
CASClient()
Empty constructor.
|
CASClient(String endpoint)
Build a client for the given endpoint.
|
CASClient(String endpoint,
String username,
String password)
Build a client for the given endpoint, using the given credentials.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authenticateForURL(String url)
Enrich the given url with a service ticket (i.e.
|
String |
authenticateForURL(String url,
MultiValueParameters parameters)
Enrich the given url with a service ticket (i.e.
|
String |
getEndpoint()
Return the endpoint of the CAS server
|
String |
getPassword()
Return the password.
|
String |
getUsername()
Return the username.
|
boolean |
isAuthnEndpoint(String endpoint) |
void |
setEndpoint(String endpoint) |
void |
setPassword(String password)
Set the password.
|
void |
setUsername(String username)
Set the username.
|
public CASClient()
public CASClient(String endpoint)
endpoint - the endpoint of the CAS serverpublic String getEndpoint()
public boolean isAuthnEndpoint(String endpoint)
endpoint - public void setEndpoint(String endpoint)
public String getUsername()
public void setUsername(String username)
username - the username to set for this clientpublic String getPassword()
public void setPassword(String password)
password - the password to setpublic String authenticateForURL(String url) throws Exception
url - Exceptionpublic String authenticateForURL(String url, MultiValueParameters parameters) throws Exception
url - parameters - ExceptionCopyright © 2017. All Rights Reserved.