Interface ConnectPrincipalService
- All Known Implementing Classes:
ConnectPrincipalServiceImpl
public interface ConnectPrincipalService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 anUnauthorizedException
is thrown.void
connectPrincipal
(Entity principal, String provider, String ssoId) writes sso_subject and provider to the selected principalvoid
disconnectPrincipal
(Entity principal) remove sso_subject and provider from the selected principalboolean
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
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 anUnauthorizedException
is thrown. -
isAlreadyUsed
sso_subject / provider combinations must be unique, this method may be used to check whether the given combination is already used or not. -
connectPrincipal
writes sso_subject and provider to the selected principal -
isConnected
checks if a principal is already connected with a provider -
disconnectPrincipal
remove sso_subject and provider from the selected principal
-