asit.moa.moaid
Class MOAIDAuthenticator

java.lang.Object
  extended byorg.apache.catalina.valves.ValveBase
      extended byorg.apache.catalina.authenticator.AuthenticatorBase
          extended byasit.moa.moaid.MOAIDAuthenticator
All Implemented Interfaces:
org.apache.catalina.Authenticator, org.apache.catalina.Contained, org.apache.catalina.Lifecycle, org.apache.catalina.Valve

public class MOAIDAuthenticator
extends org.apache.catalina.authenticator.AuthenticatorBase

MOA-ID Valve

Author:
Arne Tauber

Field Summary
protected static String info
          Descriptive information about this implementation.
 
Fields inherited from class org.apache.catalina.authenticator.AuthenticatorBase
algorithm, cache, context, debug, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, SESSION_ID_BYTES, sm, sso, started
 
Fields inherited from class org.apache.catalina.valves.ValveBase
container
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
MOAIDAuthenticator()
           
 
Method Summary
 boolean authenticate(org.apache.catalina.HttpRequest request, org.apache.catalina.HttpResponse response, org.apache.catalina.deploy.LoginConfig config)
          Authenticate the user making this request, based on the specified login configuration.
 List getAutoRoleList()
           
 String getAutoRoles()
           
 String getBkuAuswahlURL()
           
 String getBkutemplate()
           
 String getErrorpage()
           
 String getInfo()
          Return descriptive information about this Valve implementation.
 String getMoaidurl()
           
 String getOaurl()
           
 String getSslpwd()
           
 String getSslstore()
           
 String getSslStoreType_()
           
 String getTarget()
           
 String getTemplateurl()
           
protected  boolean matchRequest(org.apache.catalina.HttpRequest request)
          Does this request match the saved one (so that it must be the redirect we signalled after successful authentication?
protected  boolean restoreRequest(org.apache.catalina.HttpRequest request, org.apache.catalina.Session session)
          Restore the original request from information stored in our session.
 void setAutoRoles(String roles)
           
 void setBkuAuswahlURL(String url)
           
 void setBkutemplate(String template)
           
 void setErrorpage(String url)
           
 void setMoaidurl(String url)
           
 void setOaurl(String url)
           
 void setSslpwd(String url)
           
 void setSslstore(String url)
           
 void setSslStoreType_(String sslStoreType_)
           
 void setTarget(String url)
           
 void setTemplateurl(String url)
           
 void start()
           
 
Methods inherited from class org.apache.catalina.authenticator.AuthenticatorBase
accessControl, addLifecycleListener, associate, checkUserData, findConstraint, findLifecycleListeners, generateSessionId, getAlgorithm, getCache, getContainer, getDebug, getDigest, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getSession, getSession, invoke, log, log, reauthenticateFromSSO, register, removeLifecycleListener, setAlgorithm, setCache, setContainer, setDebug, setDisableProxyCaching, setEntropy, setRandomClass, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

protected static final String info
Descriptive information about this implementation.

See Also:
Constant Field Values
Constructor Detail

MOAIDAuthenticator

public MOAIDAuthenticator()
Method Detail

getInfo

public String getInfo()
Return descriptive information about this Valve implementation.


authenticate

public boolean authenticate(org.apache.catalina.HttpRequest request,
                            org.apache.catalina.HttpResponse response,
                            org.apache.catalina.deploy.LoginConfig config)
                     throws IOException
Authenticate the user making this request, based on the specified login configuration. Return true if any specified constraint has been satisfied, or false if we have created a response challenge already.

Parameters:
request - Request we are processing
response - Response we are creating
config - Login configuration describing how authentication should be performed
Throws:
IOException - if an input/output error occurs

setBkuAuswahlURL

public void setBkuAuswahlURL(String url)

getBkuAuswahlURL

public String getBkuAuswahlURL()

setMoaidurl

public void setMoaidurl(String url)

getMoaidurl

public String getMoaidurl()

setOaurl

public void setOaurl(String url)

getOaurl

public String getOaurl()

setBkutemplate

public void setBkutemplate(String template)

getBkutemplate

public String getBkutemplate()

setTemplateurl

public void setTemplateurl(String url)

getTemplateurl

public String getTemplateurl()

setAutoRoles

public void setAutoRoles(String roles)

getAutoRoleList

public List getAutoRoleList()

getAutoRoles

public String getAutoRoles()

setTarget

public void setTarget(String url)

getTarget

public String getTarget()

setErrorpage

public void setErrorpage(String url)

getErrorpage

public String getErrorpage()

setSslstore

public void setSslstore(String url)

getSslstore

public String getSslstore()

setSslpwd

public void setSslpwd(String url)

getSslpwd

public String getSslpwd()

matchRequest

protected boolean matchRequest(org.apache.catalina.HttpRequest request)
Does this request match the saved one (so that it must be the redirect we signalled after successful authentication?

Parameters:
request - The request to be verified

restoreRequest

protected boolean restoreRequest(org.apache.catalina.HttpRequest request,
                                 org.apache.catalina.Session session)
Restore the original request from information stored in our session. If the original request is no longer present (because the session timed out), return false; otherwise, return true.

Parameters:
request - The request to be restored
session - The session containing the saved information

start

public void start()
           throws org.apache.catalina.LifecycleException
Throws:
org.apache.catalina.LifecycleException

getSslStoreType_

public String getSslStoreType_()

setSslStoreType_

public void setSslStoreType_(String sslStoreType_)


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.