|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.jcifs.JCIFSLoginHandler
Uses JCIFS package to implement NTLM authentication. Can be used with the
LoginTag or LoginServlet
to provide a silent login.
<SystemObject type="LoginHandler" name="[ name of this handler ]"
configurableClass="com.raritantechnologies.jcifs.JCIFSLoginHandler"
basicRealm="[ name of Security realm for basic authentication ]"
ntlmDomain="[ name of NTLM domainController ]"
doAuthorization="[true(default)|false]" />
| Field Summary | |
static java.lang.String |
AUTHENTICATING
|
static java.lang.String |
NTLM_CACHE
|
static java.lang.String |
TYPE_1_MESSAGE
|
static java.lang.String |
TYPE_2_MESSAGE
|
static java.lang.String |
TYPE_3_MESSAGE
|
| Constructor Summary | |
JCIFSLoginHandler()
|
|
| Method Summary | |
boolean |
authenticate(HttpServletRequest request,
HttpServletResponse response)
returns true if the User can be identified (authenticated) - usually because a valid login profile can be obtained. |
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
protected HttpServletRequest |
getChainedRequest(HttpServletRequest origReq,
NtlmPasswordAuthentication ntlm)
Subclasses should override this if special treatment is needed. |
ILoginInfo |
getLoginInfo(HttpServletRequest request,
HttpServletResponse response)
returns a login profile (ILoginInfo) from the HTTP request. |
ILoginInfo |
getLoginInfo(ILoginInfo currentLogin,
HttpServletRequest request,
HttpServletResponse response)
Checks to see if the current login credentials are valid for the NTLM domain. |
ILoginInfo |
getLoginInfo(RaritanPageContext pageContext)
returns a login profile from a RaritanPageContext. |
void |
init(FilterConfig filterConfig)
|
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
boolean |
usesAuthenticationChallenge()
returns true if the implementation sends an HTTP authentication request to the client (e.g. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String TYPE_1_MESSAGE
public static final java.lang.String TYPE_2_MESSAGE
public static final java.lang.String TYPE_3_MESSAGE
public static final java.lang.String NTLM_CACHE
public static final java.lang.String AUTHENTICATING
| Constructor Detail |
public JCIFSLoginHandler()
| Method Detail |
public boolean usesAuthenticationChallenge()
ILoginHandler
usesAuthenticationChallenge in interface ILoginHandler
public boolean authenticate(HttpServletRequest request,
HttpServletResponse response)
ILoginHandler
authenticate in interface ILoginHandler
public ILoginInfo getLoginInfo(ILoginInfo currentLogin,
HttpServletRequest request,
HttpServletResponse response)
public ILoginInfo getLoginInfo(HttpServletRequest request,
HttpServletResponse response)
ILoginHandler
getLoginInfo in interface ILoginHandlerpublic ILoginInfo getLoginInfo(RaritanPageContext pageContext)
ILoginHandler
getLoginInfo in interface ILoginHandler
public void init(FilterConfig filterConfig)
throws ServletException
ServletException
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws java.io.IOException,
ServletException
java.io.IOException
ServletException
protected HttpServletRequest getChainedRequest(HttpServletRequest origReq,
NtlmPasswordAuthentication ntlm)
public void destroy()
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||