org.jasig.cas.client.tomcat.v7
Class AssertionCasRealm

java.lang.Object
  extended by org.apache.catalina.util.LifecycleBase
      extended by org.apache.catalina.util.LifecycleMBeanBase
          extended by org.apache.catalina.realm.RealmBase
              extended by org.jasig.cas.client.tomcat.v7.AbstractCasRealm
                  extended by org.jasig.cas.client.tomcat.v7.AssertionCasRealm
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.Lifecycle, org.apache.catalina.Realm, CasRealm

public class AssertionCasRealm
extends AbstractCasRealm

Tomcat Realm that implements CasRealm for principal and role data backed by the CAS Assertion.

Authentication always succeeds and simply returns the given principal.

Version:
$Revision$
Author:
Marvin S. Addison

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.realm.RealmBase
org.apache.catalina.realm.RealmBase.AllRolesMode
 
Field Summary
 
Fields inherited from class org.apache.catalina.realm.RealmBase
allRolesMode, container, containerLog, digest, digestEncoding, info, md, md5Encoder, md5Helper, realmPath, sm, support, validate
 
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase
mserver
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
AssertionCasRealm()
           
 
Method Summary
protected  CasRealm getDelegate()
          
 void setRoleAttributeName(String name)
           
 
Methods inherited from class org.jasig.cas.client.tomcat.v7.AbstractCasRealm
authenticate, getInfo, getName, getPassword, getPrincipal, getRoles, hasRole, hasRole, toString
 
Methods inherited from class org.apache.catalina.realm.RealmBase
addPropertyChangeListener, authenticate, authenticate, authenticate, backgroundProcess, digest, Digest, findSecurityConstraints, getAllRolesMode, getContainer, getDigest, getDigest, getDigestEncoding, getDomainInternal, getObjectNameKeyProperties, getPrincipal, getRealmPath, getRealmSuffix, getServer, getValidate, hasMessageDigest, hasResourcePermission, hasUserDataPermission, initInternal, main, removePropertyChangeListener, setAllRolesMode, setContainer, setDigest, setDigestEncoding, setRealmPath, setValidate, startInternal, stopInternal
 
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
 
Methods inherited from class org.apache.catalina.util.LifecycleBase
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionCasRealm

public AssertionCasRealm()
Method Detail

setRoleAttributeName

public void setRoleAttributeName(String name)
Parameters:
name - Name of the attribute in the principal that contains role data.

getDelegate

protected CasRealm getDelegate()

Specified by:
getDelegate in class AbstractCasRealm
Returns:
Delegate that all CasRealm operations are delegated to.


Copyright © 2006-2014 Jasig. All Rights Reserved.