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)
Modifier and Type | Method and Description |
---|---|
java.lang.String |
retrieveLoggedInSubjectId(javax.servlet.http.HttpServletRequest httpServletRequest)
retrieve the current username (subjectId) from the request object.
|
java.lang.String retrieveLoggedInSubjectId(javax.servlet.http.HttpServletRequest httpServletRequest) throws WsInvalidQueryException
httpServletRequest
- WsInvalidQueryException
- if there is a problem