Interface WsCustomAuthentication

All Known Implementing Classes:
WsGrouperDefaultAuthentication, WsGrouperKerberosAuthentication, WsGrouperLdapAuthentication

public interface WsCustomAuthentication
 implement this interface and provide the class to the classpath and grouper-ws.properties
 to override the default of httpServletRequest.getUserPrincipal();
 for non-Rampart authentication
 
 if user is not found, throw a runtime exception.  Could be WsInvalidQueryException
 which is a type of runtime exception (experiment and see what you want the response to 
 look like)
 
 
  • Method Summary

    Modifier and Type
    Method
    Description
    retrieveLoggedInSubjectId(javax.servlet.http.HttpServletRequest httpServletRequest)
    retrieve the current username (subjectId) from the request object.
  • Method Details

    • retrieveLoggedInSubjectId

      String retrieveLoggedInSubjectId(javax.servlet.http.HttpServletRequest httpServletRequest) throws WsInvalidQueryException
      retrieve the current username (subjectId) from the request object.
      Parameters:
      httpServletRequest -
      Returns:
      the logged in username (subjectId)
      Throws:
      WsInvalidQueryException - if there is a problem