Class UsernamePasswordRealm

java.lang.Object
org.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
org.codice.ddf.security.userpass.realm.UsernamePasswordRealm
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 UsernamePasswordRealm extends org.apache.shiro.realm.AuthenticatingRealm
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
    protected final List<org.apache.karaf.jaas.config.JaasRealm>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
     
    protected org.apache.shiro.authc.AuthenticationInfo
    doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token)
     
    protected Subject
    login(String username, String password, String realmName)
     
    void
    removeRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
     
    void
    setClaimsHandlers(List<ddf.security.claims.ClaimsHandler> claimsHandlers)
     
    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
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
    • realmList

      protected final List<org.apache.karaf.jaas.config.JaasRealm> realmList
  • Constructor Details

    • UsernamePasswordRealm

      public UsernamePasswordRealm()
  • 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) throws org.apache.shiro.authc.AuthenticationException
      Specified by:
      doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealm
      Throws:
      org.apache.shiro.authc.AuthenticationException
    • addRealm

      public void addRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
    • removeRealm

      public void removeRealm(org.osgi.framework.ServiceReference<org.apache.karaf.jaas.config.JaasRealm> serviceReference)
    • login

      protected Subject login(String username, String password, String realmName) throws LoginException
      Throws:
      LoginException
    • setClaimsHandlers

      public void setClaimsHandlers(List<ddf.security.claims.ClaimsHandler> claimsHandlers)