Class GroupAdapterAuthorizationSource

    • Constructor Detail

      • GroupAdapterAuthorizationSource

        public GroupAdapterAuthorizationSource()
    • Method Detail

      • loadEntitiesFromSubjectAndAdapters

        protected List<String> loadEntitiesFromSubjectAndAdapters​(String username,
                                                                  Subject subject,
                                                                  String[] rolePrincipleNames)
      • collectEntitiesFromAdapters

        protected List<String> collectEntitiesFromAdapters​(String username,
                                                           Subject subject)
      • collectEntitiesFromSubject

        protected List<String> collectEntitiesFromSubject​(String username,
                                                          Subject subject,
                                                          String[] rolePrincipleNames)
        Collects the principals for a given subject.
      • getRoles

        protected List<org.jboss.errai.security.shared.api.Role> getRoles​(List<String> principals)
        For a given collection of principal names, return the Role instances for the ones that are considered roles, so the ones that exist on the RoleRegistry.
      • getGroups

        protected List<org.jboss.errai.security.shared.api.Group> getGroups​(List<String> principals,
                                                                            String user)
        For a given collection of principal names, return the Role instances for the ones that are considered roles, so the ones that exist on the RoleRegistry.