edu.internet2.middleware.grouper.ws.security
Interface WsCustomAuthentication

All Known Implementing Classes:
WsGrouperDefaultAuthentication, WsGrouperKerberosAuthentication

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
 String retrieveLoggedInSubjectId(HttpServletRequest httpServletRequest)
          retrieve the current username (subjectId) from the request object.
 

Method Detail

retrieveLoggedInSubjectId

String retrieveLoggedInSubjectId(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