org.norther.tammi.spray.authenticator
Class DefaultMsisdnAuthFilter

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.spray.filter.DefaultFilter
          extended by org.norther.tammi.spray.authenticator.AbstractAuthenticatorFilter
              extended by org.norther.tammi.spray.authenticator.DefaultMsisdnAuthFilter
All Implemented Interfaces:
Serializable, NotificationBroadcaster, NotificationEmitter, Filter, Manageable, MBeanDelegate, AuthenticatorFilter, MsisdnAuthFilter

public class DefaultMsisdnAuthFilter
extends AbstractAuthenticatorFilter
implements MsisdnAuthFilter

A default implementation of MsisdnAuthFilter.

Version:
$Id: DefaultMsisdnAuthFilter.java,v 1.5 2010-04-22 16:31:34 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

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.MsisdnAuthFilter
MSISDN_AUTH
 
Constructor Summary
DefaultMsisdnAuthFilter()
          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.
 
Methods inherited from class org.norther.tammi.spray.authenticator.AbstractAuthenticatorFilter
authenticate, authenticate, decrementLoginAttempts, doFilter, getAuthDomain, getAuthenticationURL, getCredentials, getFaultyUser, getLoginAttempts, getLoginAttempts, getLogoutFlow, getLogoutHost, getLogoutPipe, getLogoutService, getLogoutTemplate, getLogoutURI, getLogoutURL, getPublicRealmName, getRealm, getRealmDomain, getRealmName, getUnauthorizedTemplate, getUserURL, incrementLoginAttempts, isAnonymousPrincipalAccepted, isAuthenticationRequired, isAutoLoginEnabled, isCachedPrincipalDiscarded, isUserInRole, postmanaged, setAnonymousPrincipalAccepted, setAuthDomain, setAuthenticationRequired, setAutoLoginEnabled, setCachedPrincipalDiscarded, setFaultyUser, setLoginAttempts, setLogoutFlow, setLogoutHost, setLogoutPipe, setLogoutService, setLogoutTemplate, setLogoutURI, setPublicRealmName, setRealmName, setUnauthorizedTemplate, unauthenticated, unmanaged, verifyAuthentication
 
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 org.norther.tammi.spray.authenticator.AuthenticatorFilter
authenticate, authenticate, getAuthDomain, getFaultyUser, getLoginAttempts, getLoginAttempts, getLogoutFlow, getLogoutHost, getLogoutPipe, getLogoutService, getLogoutTemplate, getLogoutURI, getLogoutURL, getPublicRealmName, getRealmDomain, getRealmName, getUnauthorizedTemplate, getUserURL, isAnonymousPrincipalAccepted, isAuthenticationRequired, isAutoLoginEnabled, isCachedPrincipalDiscarded, isUserInRole, setAnonymousPrincipalAccepted, setAuthDomain, setAuthenticationRequired, setAutoLoginEnabled, setCachedPrincipalDiscarded, setLoginAttempts, setLogoutFlow, setLogoutHost, setLogoutPipe, setLogoutService, setLogoutTemplate, setLogoutURI, setPublicRealmName, setRealmName, setUnauthorizedTemplate, unauthenticated
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 

Constructor Detail

DefaultMsisdnAuthFilter

public DefaultMsisdnAuthFilter()
Constructs a new filter.

Method Detail

getAuthType

public String getAuthType()
Description copied from interface: AuthenticatorFilter
Gets the authentication scheme.

Specified by:
getAuthType in interface AuthenticatorFilter
Specified by:
getAuthType in class AbstractAuthenticatorFilter
Returns:
the authentication scheme.

authenticate

public Principal authenticate(HttpServletRequest request,
                              HttpServletResponse response,
                              FilterChain chain)
Description copied from interface: AuthenticatorFilter
Authenticates a request within the realm of this filter.

Specified by:
authenticate in interface AuthenticatorFilter
Specified by:
authenticate in class AbstractAuthenticatorFilter
Parameters:
request - the request.
response - the response.
chain - the filter chain.
Returns:
the authenticated user principal or null.


Copyright © 2004 The Norther Organization. All rights reserved.