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 AbstractX509Realm()
-
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
-
-
-
-
Method Detail
-
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
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
-
-