Class X509KeystoreFileRealm

  • All Implemented Interfaces:
    org.apache.shiro.authc.LogoutAware, org.apache.shiro.authz.Authorizer, org.apache.shiro.authz.permission.PermissionResolverAware, org.apache.shiro.authz.permission.RolePermissionResolverAware, org.apache.shiro.cache.CacheManagerAware, org.apache.shiro.realm.Realm, org.apache.shiro.util.Initializable, org.apache.shiro.util.Nameable

    public class X509KeystoreFileRealm
    extends AbstractX509Realm
    X509 Keystore File Realm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)  
      protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection principals)  
      protected X509AuthenticationInfo doGetX509AuthenticationInfo​(X509AuthenticationToken x509AuthenticationToken)  
      java.lang.Class<X509AuthenticationToken> getAuthenticationTokenClass()  
      java.util.Map<java.lang.String,​java.lang.String> getCertificateDnRoleMapping()  
      void setCertificateDnRoleMapping​(java.util.Map<java.lang.String,​java.lang.String> certificateDnRoleMapping)  
      boolean supports​(org.apache.shiro.authc.AuthenticationToken token)  
      • Methods inherited from class org.apache.shiro.realm.AuthorizingRealm

        afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, getAuthorizationCache, getAuthorizationCacheKey, getAuthorizationCacheName, getAuthorizationInfo, getPermissionResolver, getPermissions, getRolePermissionResolver, hasAllRoles, hasRole, hasRole, hasRoles, hasRoles, isAuthorizationCachingEnabled, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isPermittedAll, onInit, setAuthorizationCache, setAuthorizationCacheName, setAuthorizationCachingEnabled, setName, setPermissionResolver, setRolePermissionResolver
      • Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm

        assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher
      • 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
      • Methods inherited from interface org.apache.shiro.util.Initializable

        init
    • Constructor Detail

      • X509KeystoreFileRealm

        public X509KeystoreFileRealm()
        empty constructor
    • Method Detail

      • doGetAuthorizationInfo

        protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo​(org.apache.shiro.subject.PrincipalCollection principals)
        Specified by:
        doGetAuthorizationInfo in class org.apache.shiro.realm.AuthorizingRealm
      • supports

        public boolean supports​(org.apache.shiro.authc.AuthenticationToken token)
        Specified by:
        supports in interface org.apache.shiro.realm.Realm
        Overrides:
        supports in class org.apache.shiro.realm.AuthenticatingRealm
      • getAuthenticationTokenClass

        public java.lang.Class<X509AuthenticationToken> getAuthenticationTokenClass()
        Overrides:
        getAuthenticationTokenClass in class org.apache.shiro.realm.AuthenticatingRealm
      • doGetAuthenticationInfo

        protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)
        Overrides:
        doGetAuthenticationInfo in class AbstractX509Realm
      • getCertificateDnRoleMapping

        public java.util.Map<java.lang.String,​java.lang.String> getCertificateDnRoleMapping()
        Returns:
        certificateDnRoleMapping
      • setCertificateDnRoleMapping

        public void setCertificateDnRoleMapping​(java.util.Map<java.lang.String,​java.lang.String> certificateDnRoleMapping)
        Parameters:
        certificateDnRoleMapping - the mapping of certificate subject and role