Class X509KeystoreFileWithRoleRealm
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
fr.gouv.vitam.common.auth.core.realm.X509KeystoreFileWithRoleRealm
- 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
X509 Keystore File Realm with Role/Permissions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.shiro.authc.AuthenticationInfodoGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token) protected org.apache.shiro.authz.AuthorizationInfodoGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) protected X509AuthenticationInfodoGetX509AuthenticationInfo(X509AuthenticationToken x509AuthenticationToken) voidsetCertificateDnRoleMapping(Map<String, String> certificateDnRoleMapping) booleansupports(org.apache.shiro.authc.AuthenticationToken token) Methods inherited from class fr.gouv.vitam.common.auth.core.realm.AbstractX509Realm
getGrantedKeyStoreName, getGrantedKeyStorePassphrase, getTrustedKeyStoreName, getTrustedKeyStorePassphrase, setGrantedKeyStoreName, setGrantedKeyStorePassphrase, setTrustedKeyStoreName, setTrustedKeyStorePassphraseMethods 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, setRolePermissionResolverMethods inherited from class org.apache.shiro.realm.AuthenticatingRealm
assertCredentialsMatch, clearCachedAuthenticationInfo, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcherMethods inherited from class org.apache.shiro.realm.CachingRealm
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shiro.util.Initializable
init
-
Constructor Details
-
X509KeystoreFileWithRoleRealm
public X509KeystoreFileWithRoleRealm()empty constructor
-
-
Method Details
-
doGetAuthorizationInfo
protected org.apache.shiro.authz.AuthorizationInfo doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection principals) - Specified by:
doGetAuthorizationInfoin classorg.apache.shiro.realm.AuthorizingRealm
-
supports
public boolean supports(org.apache.shiro.authc.AuthenticationToken token) - Specified by:
supportsin interfaceorg.apache.shiro.realm.Realm- Overrides:
supportsin classorg.apache.shiro.realm.AuthenticatingRealm
-
getAuthenticationTokenClass
- Overrides:
getAuthenticationTokenClassin classorg.apache.shiro.realm.AuthenticatingRealm
-
doGetAuthenticationInfo
protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token) - Overrides:
doGetAuthenticationInfoin classAbstractX509Realm
-
doGetX509AuthenticationInfo
protected X509AuthenticationInfo doGetX509AuthenticationInfo(X509AuthenticationToken x509AuthenticationToken) - Specified by:
doGetX509AuthenticationInfoin classAbstractX509Realm
-
getCertificateDnRoleMapping
- Returns:
- certificateDnRoleMapping
-
setCertificateDnRoleMapping
- Parameters:
certificateDnRoleMapping- the mapping of certificate subject and role
-