public class MyUcasClient
extends java.lang.Object
NOTE: this code based almost entirely on edu.ucar.cisl.authenticator.client.AuthClient;
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
host |
protected static boolean |
initialized |
static java.lang.String |
PASSWORD
NOT YET DOCUMENTED
|
protected static java.lang.String |
serverLogin |
protected static java.lang.String |
serverPassword |
static java.lang.String |
TOKEN
NOT YET DOCUMENTED
|
Constructor and Description |
---|
MyUcasClient() |
Modifier and Type | Method and Description |
---|---|
static boolean |
authenticate(java.lang.String authType,
java.lang.String username,
java.lang.String password)
NOT YET DOCUMENTED
|
static edu.ucar.cisl.authenticator.domain.Authentication |
getAuthentication(java.lang.String authType,
java.lang.String username,
java.lang.String password)
Gets the authentication attribute of the AuthClient class
|
static void |
main(java.lang.String[] args)
NOT YET DOCUMENTED
|
static void |
setPropsPath(java.lang.String path)
Sets the propsPath attribute of the MyUcasClient class
|
static void |
setup()
Set up from propsfile - most of this method is copied from UCAS AuthClient.
|
protected static boolean initialized
protected static java.lang.String host
public static final java.lang.String PASSWORD
public static final java.lang.String TOKEN
protected static java.lang.String serverLogin
protected static java.lang.String serverPassword
public static boolean authenticate(java.lang.String authType, java.lang.String username, java.lang.String password) throws edu.ucar.cisl.authenticator.client.AuthClientException
authType
- NOT YET DOCUMENTEDusername
- NOT YET DOCUMENTEDpassword
- NOT YET DOCUMENTEDedu.ucar.cisl.authenticator.client.AuthClientException
- NOT YET DOCUMENTEDpublic static edu.ucar.cisl.authenticator.domain.Authentication getAuthentication(java.lang.String authType, java.lang.String username, java.lang.String password) throws edu.ucar.cisl.authenticator.client.AuthClientException
authType
- NOT YET DOCUMENTEDusername
- NOT YET DOCUMENTEDpassword
- NOT YET DOCUMENTEDedu.ucar.cisl.authenticator.client.AuthClientException
- NOT YET DOCUMENTEDpublic static void main(java.lang.String[] args)
args
- NOT YET DOCUMENTEDpublic static void setPropsPath(java.lang.String path)
path
- The new ppropsPath valuepublic static void setup() throws edu.ucar.cisl.authenticator.client.AuthClientException
edu.ucar.cisl.authenticator.client.AuthClientException
- NOT YET DOCUMENTED