DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.auth.ucas
Class MyUcasClient

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.auth.ucas.MyUcasClient

public class MyUcasClient
extends Object

Extend the UCAS AuthClient class to implement the properties file as a static variable so its location can be determined and set by LoginModule.

NOTE: this code based almost entirely on edu.ucar.cisl.authenticator.client.AuthClient;

Author:
Jonathan Ostwald

Field Summary
protected static String host
           
protected static boolean initialized
           
static String PASSWORD
          NOT YET DOCUMENTED
protected static String serverLogin
           
protected static String serverPassword
           
static String TOKEN
          NOT YET DOCUMENTED
 
Constructor Summary
MyUcasClient()
           
 
Method Summary
static boolean authenticate(String authType, String username, String password)
          NOT YET DOCUMENTED
static edu.ucar.cisl.authenticator.domain.Authentication getAuthentication(String authType, String username, String password)
          Gets the authentication attribute of the AuthClient class
static void main(String[] args)
          NOT YET DOCUMENTED
static void setPropsPath(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

protected static boolean initialized

host

protected static String host

PASSWORD

public static final String PASSWORD
NOT YET DOCUMENTED

See Also:
Constant Field Values

TOKEN

public static final String TOKEN
NOT YET DOCUMENTED

See Also:
Constant Field Values

serverLogin

protected static String serverLogin

serverPassword

protected static String serverPassword
Constructor Detail

MyUcasClient

public MyUcasClient()
Method Detail

authenticate

public static boolean authenticate(String authType,
                                   String username,
                                   String password)
                            throws edu.ucar.cisl.authenticator.client.AuthClientException
NOT YET DOCUMENTED

Parameters:
authType - NOT YET DOCUMENTED
username - NOT YET DOCUMENTED
password - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED
Throws:
edu.ucar.cisl.authenticator.client.AuthClientException - NOT YET DOCUMENTED

getAuthentication

public static edu.ucar.cisl.authenticator.domain.Authentication getAuthentication(String authType,
                                                                                  String username,
                                                                                  String password)
                                                                           throws edu.ucar.cisl.authenticator.client.AuthClientException
Gets the authentication attribute of the AuthClient class

Parameters:
authType - NOT YET DOCUMENTED
username - NOT YET DOCUMENTED
password - NOT YET DOCUMENTED
Returns:
The authentication value
Throws:
edu.ucar.cisl.authenticator.client.AuthClientException - NOT YET DOCUMENTED

main

public static void main(String[] args)
NOT YET DOCUMENTED

Parameters:
args - NOT YET DOCUMENTED

setPropsPath

public static void setPropsPath(String path)
Sets the propsPath attribute of the MyUcasClient class

Parameters:
path - The new ppropsPath value

setup

public static void setup()
                  throws edu.ucar.cisl.authenticator.client.AuthClientException
Set up from propsfile - most of this method is copied from UCAS AuthClient.

Throws:
edu.ucar.cisl.authenticator.client.AuthClientException - NOT YET DOCUMENTED

DLESE Tools
v1.6.0