Is struts 1.X has JAAS integration API?
I want to use the follow code:

HttpServletRequest request = ServletActionContext.getRequest();
String authType = request.getAuthType(); // http or https
String user = request.getRemoteUser(); // the user principal (in string)
Principalprincipal = request.getUserPrincipal(); // get a Principal object
bool isAuth = request.isUserInRole("patrick");

but I don't know how to set the values for authType ,remoteUser etc.
anyone can give me help~

 
 
 

Reply via email to