Class AbstractX509Realm

  • 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
    Direct Known Subclasses:
    X509KeystoreFileRealm, X509KeystoreFileWithRoleRealm

    public abstract class AbstractX509Realm
    extends org.apache.shiro.realm.AuthorizingRealm
    Based on work: Copyright Paul Merlin 2011 (Apache Licence v2.0)
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)  
      protected abstract X509AuthenticationInfo doGetX509AuthenticationInfo​(X509AuthenticationToken x509AuthenticationToken)  
      java.lang.String getGrantedKeyStoreName()  
      java.lang.String getGrantedKeyStorePassphrase()  
      java.lang.String getTrustedKeyStoreName()  
      java.lang.String getTrustedKeyStorePassphrase()  
      void setGrantedKeyStoreName​(java.lang.String grantedKeyStoreName)  
      void setGrantedKeyStorePassphrase​(java.lang.String grantedKeyStorePassphrase)  
      void setTrustedKeyStoreName​(java.lang.String trustedKeyStoreName)  
      void setTrustedKeyStorePassphrase​(java.lang.String trustedKeyStorePassphrase)  
      • Methods inherited from class org.apache.shiro.realm.AuthorizingRealm

        afterCacheManagerSet, checkPermission, checkPermission, checkPermission, checkPermissions, checkPermissions, checkPermissions, checkRole, checkRole, checkRoles, checkRoles, checkRoles, clearCachedAuthorizationInfo, doClearCache, doGetAuthorizationInfo, 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, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, supports
      • 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

      • AbstractX509Realm

        public AbstractX509Realm()
    • Method Detail

      • doGetAuthenticationInfo

        protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo​(org.apache.shiro.authc.AuthenticationToken token)
        Specified by:
        doGetAuthenticationInfo in class org.apache.shiro.realm.AuthenticatingRealm
      • getGrantedKeyStoreName

        public java.lang.String getGrantedKeyStoreName()
        Returns:
        the grantedKeyStoreName
      • setGrantedKeyStoreName

        public void setGrantedKeyStoreName​(java.lang.String grantedKeyStoreName)
        Parameters:
        grantedKeyStoreName - the grantedKeyStoreName to set
      • getGrantedKeyStorePassphrase

        public java.lang.String getGrantedKeyStorePassphrase()
        Returns:
        the grantedKeyStorePassphrase
      • setGrantedKeyStorePassphrase

        public void setGrantedKeyStorePassphrase​(java.lang.String grantedKeyStorePassphrase)
        Parameters:
        grantedKeyStorePassphrase - the grantedKeyStorePassphrase to set
      • getTrustedKeyStoreName

        public java.lang.String getTrustedKeyStoreName()
        Returns:
        the trustedKeyStoreName
      • setTrustedKeyStoreName

        public void setTrustedKeyStoreName​(java.lang.String trustedKeyStoreName)
        Parameters:
        trustedKeyStoreName - the trustedKeyStoreName to set
      • getTrustedKeyStorePassphrase

        public java.lang.String getTrustedKeyStorePassphrase()
        Returns:
        the trustedKeyStorePassphrase
      • setTrustedKeyStorePassphrase

        public void setTrustedKeyStorePassphrase​(java.lang.String trustedKeyStorePassphrase)
        Parameters:
        trustedKeyStorePassphrase - the trustedKeyStorePassphrase to set