Interface ConnectPrincipalService

All Known Implementing Classes:
ConnectPrincipalServiceImpl

public interface ConnectPrincipalService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The action may only be run as usermanager or for the own principal (username of the selected principal = current username) If the action is called for a different username without usermanager role an UnauthorizedException is thrown.
    void
    connectPrincipal(Entity principal, String provider, String ssoId)
    writes sso_subject and provider to the selected principal
    void
    remove sso_subject and provider from the selected principal
    boolean
    isAlreadyUsed(String provider, String ssoId)
    sso_subject / provider combinations must be unique, this method may be used to check whether the given combination is already used or not.
    boolean
    isConnected(Entity principal)
    checks if a principal is already connected with a provider
  • Method Details

    • checkAccessRights

      void checkAccessRights(Entity principal)
      The action may only be run as usermanager or for the own principal (username of the selected principal = current username) If the action is called for a different username without usermanager role an UnauthorizedException is thrown.
    • isAlreadyUsed

      boolean isAlreadyUsed(String provider, String ssoId)
      sso_subject / provider combinations must be unique, this method may be used to check whether the given combination is already used or not.
    • connectPrincipal

      void connectPrincipal(Entity principal, String provider, String ssoId)
      writes sso_subject and provider to the selected principal
    • isConnected

      boolean isConnected(Entity principal)
      checks if a principal is already connected with a provider
    • disconnectPrincipal

      void disconnectPrincipal(Entity principal)
      remove sso_subject and provider from the selected principal