Class SamlRealm

java.lang.Object
org.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
ddf.security.realm.sts.SamlRealm
All Implemented Interfaces:
org.apache.shiro.authc.LogoutAware, org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.realm.Realm, org.apache.shiro.util.Initializable, org.apache.shiro.util.Nameable

public class SamlRealm extends org.apache.shiro.realm.AuthenticatingRealm
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    Credentials matcher class that ensures the AuthInfo received from the STS matches the AuthToken
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.shiro.authc.AuthenticationInfo
    doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
    Perform authentication based on the supplied token.
    org.codice.ddf.security.saml.assertion.validator.SamlAssertionValidator
     
     
    void
    setSamlAssertionValidator(org.codice.ddf.security.saml.assertion.validator.SamlAssertionValidator samlAssertionValidator)
     
    void
    setUsernameAttributeList(List<String> usernameAttributeList)
     
    boolean
    supports(org.apache.shiro.authc.AuthenticationToken token)
    Determine if the supplied token is supported by this realm.

    Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm

    afterCacheManagerSet, assertCredentialsMatch, clearCachedAuthenticationInfo, doClearCache, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, onInit, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, setName

    Methods inherited from class org.apache.shiro.realm.CachingRealm

    clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SamlRealm

      public SamlRealm()
  • Method Details

    • supports

      public boolean supports(org.apache.shiro.authc.AuthenticationToken token)
      Determine if the supplied token is supported by this realm.
      Specified by:
      supports in interface org.apache.shiro.realm.Realm
      Overrides:
      supports in class org.apache.shiro.realm.AuthenticatingRealm
    • doGetAuthenticationInfo

      protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
      Perform authentication based on the supplied token.
      Specified by:
      doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealm
    • getUsernameAttributeList

      public List<String> getUsernameAttributeList()
    • setUsernameAttributeList

      public void setUsernameAttributeList(List<String> usernameAttributeList)
    • getSamlAssertionValidator

      public org.codice.ddf.security.saml.assertion.validator.SamlAssertionValidator getSamlAssertionValidator()
    • setSamlAssertionValidator

      public void setSamlAssertionValidator(org.codice.ddf.security.saml.assertion.validator.SamlAssertionValidator samlAssertionValidator)