Class ConfigurationRealm

  • All Implemented Interfaces:
    org.seedstack.seed.security.Realm

    public class ConfigurationRealm
    extends Object
    implements org.seedstack.seed.security.Realm
    A realm that authenticate users and gives authorities using SeedStack configuration.
    • Constructor Detail

      • ConfigurationRealm

        @Inject
        protected ConfigurationRealm​(@Named("ConfigurationRealm-role-mapping")
                                     org.seedstack.seed.security.RoleMapping roleMapping,
                                     @Named("ConfigurationRealm-role-permission-resolver")
                                     org.seedstack.seed.security.RolePermissionResolver rolePermissionResolver,
                                     SecurityConfig securityConfig)
    • Method Detail

      • 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
      • 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
      • 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