|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.spray.filter.DefaultFilter
org.norther.tammi.spray.authenticator.AbstractAuthenticatorFilter
org.norther.tammi.spray.authenticator.DefaultHttpDigestAuthFilter
public class DefaultHttpDigestAuthFilter
An implementation of the DIGEST authentication sheme.
Based on DigestAuthenticator in the Apache Jakarta Tomcat
project.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.spray.authenticator.AbstractAuthenticatorFilter |
|---|
DEFAULT_USER_ACCOUNT_ID_ATTIBUTE |
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.spray.authenticator.HttpDigestAuthFilter |
|---|
DIGEST_AUTH |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultHttpDigestAuthFilter()
Constructs a new filter. |
|
| Method Summary | |
|---|---|
Principal |
authenticate(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
Authenticates a request within the realm of this filter. |
String |
getAuthType()
Gets the authentication scheme. |
int |
getDigestTimeout()
Gets the digest timeout. |
void |
setDigestTimeout(int timeout)
Sets the digest timeout. |
void |
setPrivateKey(String key)
Sets the private key. |
void |
unauthenticated(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
A handler for unauthenticated requests that should provide an opportunity for the user to re-authenticate himself. |
| Methods inherited from class org.norther.tammi.spray.filter.DefaultFilter |
|---|
destroy, getFilterConfig, getRequestMap, getSessionMap, init |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Filter |
|---|
destroy, doFilter, init |
| Constructor Detail |
|---|
public DefaultHttpDigestAuthFilter()
| Method Detail |
|---|
public String getAuthType()
AuthenticatorFilter
getAuthType in interface AuthenticatorFiltergetAuthType in class AbstractAuthenticatorFilterpublic void setPrivateKey(String key)
HttpDigestAuthFilter
setPrivateKey in interface HttpDigestAuthFilterkey - the private key.public int getDigestTimeout()
HttpDigestAuthFilter
getDigestTimeout in interface HttpDigestAuthFilterpublic void setDigestTimeout(int timeout)
HttpDigestAuthFilter
setDigestTimeout in interface HttpDigestAuthFiltertimeout - the digest timeout in secs, -1 = forever.
public Principal authenticate(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
AuthenticatorFilter
authenticate in interface AuthenticatorFilterauthenticate in class AbstractAuthenticatorFilterrequest - the request.response - the response.chain - the filter chain.
public void unauthenticated(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
throws ServletException,
IOException
AuthenticatorFilter
unauthenticated in interface AuthenticatorFilterunauthenticated in class AbstractAuthenticatorFilterrequest - the request.response - the response.chain - the filter chain.
ServletException - for servlet errors.
IOException - for general errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||