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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.shiro.authc.AuthenticationInfo
doGetAuthenticationInfo
(org.apache.shiro.authc.AuthenticationToken token) protected abstract X509AuthenticationInfo
doGetX509AuthenticationInfo
(X509AuthenticationToken x509AuthenticationToken) 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 classorg.apache.shiro.realm.AuthenticatingRealm
-
doGetX509AuthenticationInfo
protected abstract X509AuthenticationInfo doGetX509AuthenticationInfo(X509AuthenticationToken x509AuthenticationToken) -
getGrantedKeyStoreName
- Returns:
- the grantedKeyStoreName
-
setGrantedKeyStoreName
- Parameters:
grantedKeyStoreName
- the grantedKeyStoreName to set
-
getGrantedKeyStorePassphrase
- Returns:
- the grantedKeyStorePassphrase
-
setGrantedKeyStorePassphrase
- Parameters:
grantedKeyStorePassphrase
- the grantedKeyStorePassphrase to set
-
getTrustedKeyStoreName
- Returns:
- the trustedKeyStoreName
-
setTrustedKeyStoreName
- Parameters:
trustedKeyStoreName
- the trustedKeyStoreName to set
-
getTrustedKeyStorePassphrase
- Returns:
- the trustedKeyStorePassphrase
-
setTrustedKeyStorePassphrase
- Parameters:
trustedKeyStorePassphrase
- the trustedKeyStorePassphrase to set
-