struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张云勇 <ever...@163.com>
Subject Is struts 1.X has JAAS integration API?
Date Mon, 17 Dec 2007 05:15:03 GMT
 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~

 
 
 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message