Class MyUcasClient
java.lang.Object
org.dlese.dpc.schemedit.security.auth.ucas.MyUcasClient
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanauthenticate(String authType, String username, String password) NOT YET DOCUMENTEDstatic edu.ucar.cisl.authenticator.domain.AuthenticationgetAuthentication(String authType, String username, String password) Gets the authentication attribute of the AuthClient classstatic voidNOT YET DOCUMENTEDstatic voidsetPropsPath(String path) Sets the propsPath attribute of the MyUcasClient classstatic voidsetup()Set up from propsfile - most of this method is copied from UCAS AuthClient.
-
Field Details
-
initialized
protected static boolean initialized -
host
-
PASSWORD
NOT YET DOCUMENTED- See Also:
-
TOKEN
NOT YET DOCUMENTED- See Also:
-
serverLogin
-
serverPassword
-
-
Constructor Details
-
MyUcasClient
public MyUcasClient()
-
-
Method Details
-
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 DOCUMENTEDusername- NOT YET DOCUMENTEDpassword- 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 DOCUMENTEDusername- NOT YET DOCUMENTEDpassword- NOT YET DOCUMENTED- Returns:
- The authentication value
- Throws:
edu.ucar.cisl.authenticator.client.AuthClientException- NOT YET DOCUMENTED
-
main
NOT YET DOCUMENTED- Parameters:
args- NOT YET DOCUMENTED
-
setPropsPath
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.AuthClientExceptionSet up from propsfile - most of this method is copied from UCAS AuthClient.- Throws:
edu.ucar.cisl.authenticator.client.AuthClientException- NOT YET DOCUMENTED
-