Interface ConnectPrincipalService
- All Known Implementing Classes:
ConnectPrincipalServiceImpl
public interface ConnectPrincipalService
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAccessRights(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 anUnauthorizedExceptionis thrown.voidconnectPrincipal(Entity principal, String provider, String ssoId) writes sso_subject and provider to the selected principalvoiddisconnectPrincipal(Entity principal) remove sso_subject and provider from the selected principalbooleanisAlreadyUsed(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.booleanisConnected(Entity principal) checks if a principal is already connected with a provider
-
Method Details
-
checkAccessRights
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 anUnauthorizedExceptionis thrown. -
isAlreadyUsed
-
connectPrincipal
-
isConnected
checks if a principal is already connected with a provider -
disconnectPrincipal
remove sso_subject and provider from the selected principal
-