Class X509CertificateRealm
- java.lang.Object
-
- org.seedstack.seed.security.internal.realms.X509CertificateRealm
-
- All Implemented Interfaces:
org.seedstack.seed.security.Realm
public class X509CertificateRealm extends Object implements org.seedstack.seed.security.Realm
A realm that is based on an X509Certificate to identify the user and provide his roles. This realm does not actually authenticates the user as this process should be done by Servlet container.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedX509CertificateRealm(org.seedstack.seed.security.RoleMapping roleMapping, org.seedstack.seed.security.RolePermissionResolver rolePermissionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.seedstack.seed.security.AuthenticationInfogetAuthenticationInfo(org.seedstack.seed.security.AuthenticationToken token)Set<String>getRealmRoles(org.seedstack.seed.security.principals.PrincipalProvider<?> identityPrincipal, Collection<org.seedstack.seed.security.principals.PrincipalProvider<?>> otherPrincipals)org.seedstack.seed.security.RoleMappinggetRoleMapping()org.seedstack.seed.security.RolePermissionResolvergetRolePermissionResolver()Class<? extends org.seedstack.seed.security.AuthenticationToken>supportedToken()
-
-
-
Constructor Detail
-
X509CertificateRealm
@Inject protected X509CertificateRealm(@Named("X509CertificateRealm-role-mapping") org.seedstack.seed.security.RoleMapping roleMapping, @Named("X509CertificateRealm-role-permission-resolver") org.seedstack.seed.security.RolePermissionResolver rolePermissionResolver)
-
-
Method Detail
-
getAuthenticationInfo
public org.seedstack.seed.security.AuthenticationInfo getAuthenticationInfo(org.seedstack.seed.security.AuthenticationToken token) throws org.seedstack.seed.security.AuthenticationException- Specified by:
getAuthenticationInfoin interfaceorg.seedstack.seed.security.Realm- Throws:
org.seedstack.seed.security.AuthenticationException
-
getRealmRoles
public Set<String> getRealmRoles(org.seedstack.seed.security.principals.PrincipalProvider<?> identityPrincipal, Collection<org.seedstack.seed.security.principals.PrincipalProvider<?>> otherPrincipals)
- Specified by:
getRealmRolesin interfaceorg.seedstack.seed.security.Realm
-
getRoleMapping
public org.seedstack.seed.security.RoleMapping getRoleMapping()
- Specified by:
getRoleMappingin interfaceorg.seedstack.seed.security.Realm
-
getRolePermissionResolver
public org.seedstack.seed.security.RolePermissionResolver getRolePermissionResolver()
- Specified by:
getRolePermissionResolverin interfaceorg.seedstack.seed.security.Realm
-
supportedToken
public Class<? extends org.seedstack.seed.security.AuthenticationToken> supportedToken()
- Specified by:
supportedTokenin interfaceorg.seedstack.seed.security.Realm
-
-