|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.caucho.http.security.AbstractAuthenticator
com.opensymphony.user.adapter.resin.ResinAuthenticatorAdapter
A ResinAuthenticatorAdapter for OSUser. It _should_ work but hasn't really been tested as none of the core developers use Resin. Please email me (or the OSUser list) if you use this Adapter - and tell me whether it works properly or not ;) See Security Configuration document at Caucho site for more information on Resin Authenticators.
| Field Summary |
| Fields inherited from class com.caucho.http.security.AbstractAuthenticator |
LOGIN_NAME, passwordDigest, passwordDigestName, principalCache, principalCacheSize |
| Constructor Summary | |
ResinAuthenticatorAdapter()
|
|
| Method Summary | |
protected java.security.Principal |
getUserPrincipalImpl(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
Not sure how this should work in an OSUser sense. |
void |
init()
Initializes this Authenticator. |
boolean |
isUserInRole(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
java.security.Principal principal,
java.lang.String s)
This doesn't seem to make much sense in a deployment environment, as the roles should be set in web.xml? (Or perhaps I haven't had enough sleep today) |
protected java.security.Principal |
loginImpl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
java.lang.String s,
java.lang.String s1)
Delegates to lookup based on username and password |
protected java.security.Principal |
loginImpl(java.lang.String username,
java.lang.String password)
Look up a user given a username, authenticate their password and return the user if they authenticate. |
| Methods inherited from class com.caucho.http.security.AbstractAuthenticator |
digest, getDigestPassword, getDigestSecret, getPasswordDigest, getPrincipalCacheSize, getUserPrincipal, login, loginDigest, loginDigestImpl, logout, setPasswordDigest, setPrincipalCacheSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResinAuthenticatorAdapter()
| Method Detail |
public boolean isUserInRole(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
java.security.Principal principal,
java.lang.String s)
throws javax.servlet.ServletException
javax.servlet.ServletException
public void init()
throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.security.Principal getUserPrincipalImpl(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext context)
throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.security.Principal loginImpl(java.lang.String username,
java.lang.String password)
protected java.security.Principal loginImpl(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context,
java.lang.String s,
java.lang.String s1)
throws javax.servlet.ServletException
javax.servlet.ServletException
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||