Class CustomExternalIdentityProvider

    • Constructor Detail

      • CustomExternalIdentityProvider

        public CustomExternalIdentityProvider()
    • Method Detail

      • activate

        public void activate​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      • modified

        public void modified​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      • getUser

        public ExternalUser getUser​(@NotNull
                                    @NotNull java.lang.String userId)
        Description copied from interface: ExternalIdentityProvider
        Returns the user for the given (local) id. if the user does not exist null is returned.
        Specified by:
        getUser in interface ExternalIdentityProvider
        Parameters:
        userId - the user id.
        Returns:
        the user or null
      • authenticate

        public ExternalUser authenticate​(@NotNull
                                         @NotNull Credentials credentials)
                                  throws javax.security.auth.login.LoginException
        Description copied from interface: ExternalIdentityProvider
        Authenticates the user represented by the given credentials and returns it. If the user does not exist in this provider, null is returned. If the authentication fails, a LoginException is thrown.
        Specified by:
        authenticate in interface ExternalIdentityProvider
        Parameters:
        credentials - the credentials
        Returns:
        the user or null
        Throws:
        javax.security.auth.login.LoginException - if the user could not be authenticated
      • getGroup

        public ExternalGroup getGroup​(@NotNull
                                      @NotNull java.lang.String name)
        Description copied from interface: ExternalIdentityProvider
        Returns the group for the given (local) group name. if the group does not exist null is returned.
        Specified by:
        getGroup in interface ExternalIdentityProvider
        Parameters:
        name - the group name
        Returns:
        the group or null