Class AbstractX509Realm

java.lang.Object
org.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
org.apache.shiro.realm.AuthorizingRealm
fr.gouv.vitam.common.auth.core.realm.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)
  • 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)
     
    protected abstract X509AuthenticationInfo
     
     
     
     
     
    void
    setGrantedKeyStoreName(String grantedKeyStoreName)
     
    void
    setGrantedKeyStorePassphrase(String grantedKeyStorePassphrase)
     
    void
    setTrustedKeyStoreName(String trustedKeyStoreName)
     
    void
    setTrustedKeyStorePassphrase(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 Details

    • AbstractX509Realm

      public AbstractX509Realm()
  • Method Details

    • doGetAuthenticationInfo

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

      protected abstract X509AuthenticationInfo doGetX509AuthenticationInfo(X509AuthenticationToken x509AuthenticationToken)
    • getGrantedKeyStoreName

      public String getGrantedKeyStoreName()
      Returns:
      the grantedKeyStoreName
    • setGrantedKeyStoreName

      public void setGrantedKeyStoreName(String grantedKeyStoreName)
      Parameters:
      grantedKeyStoreName - the grantedKeyStoreName to set
    • getGrantedKeyStorePassphrase

      public String getGrantedKeyStorePassphrase()
      Returns:
      the grantedKeyStorePassphrase
    • setGrantedKeyStorePassphrase

      public void setGrantedKeyStorePassphrase(String grantedKeyStorePassphrase)
      Parameters:
      grantedKeyStorePassphrase - the grantedKeyStorePassphrase to set
    • getTrustedKeyStoreName

      public String getTrustedKeyStoreName()
      Returns:
      the trustedKeyStoreName
    • setTrustedKeyStoreName

      public void setTrustedKeyStoreName(String trustedKeyStoreName)
      Parameters:
      trustedKeyStoreName - the trustedKeyStoreName to set
    • getTrustedKeyStorePassphrase

      public String getTrustedKeyStorePassphrase()
      Returns:
      the trustedKeyStorePassphrase
    • setTrustedKeyStorePassphrase

      public void setTrustedKeyStorePassphrase(String trustedKeyStorePassphrase)
      Parameters:
      trustedKeyStorePassphrase - the trustedKeyStorePassphrase to set