Class 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 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:
        getAuthenticationInfo in interface org.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:
        getRealmRoles in interface org.seedstack.seed.security.Realm
      • getRoleMapping

        public org.seedstack.seed.security.RoleMapping getRoleMapping()
        Specified by:
        getRoleMapping in interface org.seedstack.seed.security.Realm
      • getRolePermissionResolver

        public org.seedstack.seed.security.RolePermissionResolver getRolePermissionResolver()
        Specified by:
        getRolePermissionResolver in interface org.seedstack.seed.security.Realm
      • supportedToken

        public Class<? extends org.seedstack.seed.security.AuthenticationToken> supportedToken()
        Specified by:
        supportedToken in interface org.seedstack.seed.security.Realm