Class MyUcasClient

java.lang.Object
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 Details

    • initialized

      protected static boolean initialized
    • host

      protected static String host
    • PASSWORD

      public static final String PASSWORD
      NOT YET DOCUMENTED
      See Also:
    • TOKEN

      public static final String TOKEN
      NOT YET DOCUMENTED
      See Also:
    • serverLogin

      protected static String serverLogin
    • serverPassword

      protected static String 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 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