Class ExternalGroupsProvider


  • public abstract class ExternalGroupsProvider
    extends java.lang.Object
    Note that prefix "do" for names of methods is reserved for future enhancements, thus should not be used in subclasses.
    Since:
    2.14
    See Also:
    SecurityRealm
    • Constructor Detail

      • ExternalGroupsProvider

        public ExternalGroupsProvider()
    • Method Detail

      • doGetGroups

        @Deprecated
        public java.util.Collection<java.lang.String> doGetGroups​(java.lang.String username)
        Returns:
        list of groups associated with specified user, or null if such user doesn't exist
        Throws:
        java.lang.RuntimeException - in case of unexpected error such as connection failure
      • doGetGroups

        public java.util.Collection<java.lang.String> doGetGroups​(ExternalGroupsProvider.Context context)
        Override this method in order to load user group information.
        Returns:
        list of groups associated with specified user, or null if such user doesn't exist
        Throws:
        java.lang.RuntimeException - in case of unexpected error such as connection failure
        Since:
        5.2