Class RestCrowdClient
java.lang.Object
com.atlassian.crowd.integration.rest.service.RestCrowdClient
- All Implemented Interfaces:
CrowdClient
This is the Crowd Client to access REST services on a remote Crowd Server.
-
Constructor Summary
ConstructorsConstructorDescriptionRestCrowdClient(RestExecutor executor) Please do not call this constructor directly.RestCrowdClient(ClientProperties clientProperties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddGroupToGroup(String childGroup, String parentGroup) addUser(User user, PasswordCredential passwordCredential) addUser(UserWithAttributes user, PasswordCredential passwordCredential) voidaddUserToGroup(String username, String groupName) authenticateSSOUser(UserAuthenticationContext userAuthenticationContext) authenticateSSOUser(UserAuthenticationContext userAuthenticationContext, long duration) authenticateSSOUserWithoutValidatingPassword(UserAuthenticationContext userAuthenticationContext) authenticateUser(String username, String password) voidfindUserFromSSOToken(String token) getChildGroupsOfGroup(String groupName, int startIndex, int maxResults) Get a group by name.getGroupsForNestedUser(String userName, int startIndex, int maxResults) getGroupsForUser(String userName, int startIndex, int maxResults) getGroupsWithAttributesForUser(String userName, int startIndex, int maxResults) getGroupWithAttributes(String name) getNamesOfChildGroupsOfGroup(String groupName, int startIndex, int maxResults) getNamesOfGroupsForNestedUser(String userName, int startIndex, int maxResults) getNamesOfGroupsForUser(String userName, int startIndex, int maxResults) getNamesOfNestedChildGroupsOfGroup(String groupName, int startIndex, int maxResults) getNamesOfNestedUsersOfGroup(String groupName, int startIndex, int maxResults) getNamesOfParentGroupsForGroup(String groupName, int startIndex, int maxResults) getNamesOfParentGroupsForNestedGroup(String groupName, int startIndex, int maxResults) getNamesOfUsersOfGroup(String groupName, int startIndex, int maxResults) getNestedChildGroupsOfGroup(String groupName, int startIndex, int maxResults) getNestedUsersOfGroup(String groupName, int startIndex, int maxResults) getNewEvents(String eventToken) getParentGroupsForGroup(String groupName, int startIndex, int maxResults) getParentGroupsForNestedGroup(String groupName, int startIndex, int maxResults) getUserByKey(String key) getUsersOfGroup(String groupName, int startIndex, int maxResults) getUserWithAttributes(String name) getWebhook(long webhookId) voidinvalidateSSOToken(String token) voidinvalidateSSOTokensForUser(String username) voidinvalidateSSOTokensForUser(String username, String exclude) booleanisGroupDirectGroupMember(String childName, String parentName) booleanisUserDirectGroupMember(String username, String groupName) booleanisUserNestedGroupMember(String username, String groupName) longregisterWebhook(String endpointUrl, String token) voidremoveGroup(String groupName) voidremoveGroupAttributes(String groupName, String attributeName) voidremoveGroupFromGroup(String childGroup, String parentGroup) voidremoveUser(String username) voidremoveUserAttributes(String username, String attributeName) voidremoveUserFromGroup(String username, String groupName) renameUser(String oldUsername, String newUsername) voidrequestPasswordReset(String username) voidrequestUsernames(String email) searchGroupNames(SearchRestriction searchRestriction, int startIndex, int maxResults) searchGroups(SearchRestriction searchRestriction, int startIndex, int maxResults) searchGroupsWithAttributes(SearchRestriction searchRestriction, int startIndex, int maxResults) searchUserNames(SearchRestriction searchRestriction, int startIndex, int maxResults) searchUsers(SearchRestriction searchRestriction, int startIndex, int maxResults) searchUsersWithAttributes(SearchRestriction searchRestriction, int startIndex, int maxResults) voidshutdown()voidvoidvoidvoidunregisterWebhook(long webhookId) voidupdateGroup(Group group) voidupdateUser(User user) voidupdateUserCredential(String username, String password) userAuthenticated(String username) voidvalidateSSOAuthentication(String token, List<ValidationFactor> validationFactors) validateSSOAuthenticationAndGetSession(String token, List<ValidationFactor> validationFactors)
-
Constructor Details
-
RestCrowdClient
Deprecated.use theRestCrowdClientFactorymethodsConstructs a new REST Crowd Client instance. This client provides a simple interface for interacting with a remote Crowd server. The client is thread safe.- Parameters:
clientProperties- crowd properties for the client
-
RestCrowdClient
Please do not call this constructor directly. Use the methods inRestCrowdClientFactoryinstead.
-
-
Method Details
-
getUser
public User getUser(String name) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getUserWithAttributes
public UserWithAttributes getUserWithAttributes(String name) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getUserWithAttributesin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getUserByKey
public User getUserByKey(String key) throws UserNotFoundException, OperationFailedException, ApplicationPermissionException, InvalidAuthenticationException - Specified by:
getUserByKeyin interfaceCrowdClient- Throws:
UserNotFoundExceptionOperationFailedExceptionApplicationPermissionExceptionInvalidAuthenticationException
-
authenticateUser
public User authenticateUser(String username, String password) throws UserNotFoundException, InactiveAccountException, ExpiredCredentialException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException -
userAuthenticated
public User userAuthenticated(String username) throws ApplicationPermissionException, OperationFailedException, InvalidAuthenticationException, UserNotFoundException, InactiveAccountException - Specified by:
userAuthenticatedin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionOperationFailedExceptionInvalidAuthenticationExceptionUserNotFoundExceptionInactiveAccountException
-
addUser
public UserWithAttributes addUser(UserWithAttributes user, PasswordCredential passwordCredential) throws ApplicationPermissionException, InvalidUserException, InvalidCredentialException, InvalidAuthenticationException, OperationFailedException - Specified by:
addUserin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidUserExceptionInvalidCredentialExceptionInvalidAuthenticationExceptionOperationFailedException
-
addUser
public UserWithAttributes addUser(User user, PasswordCredential passwordCredential) throws ApplicationPermissionException, InvalidUserException, InvalidCredentialException, InvalidAuthenticationException, OperationFailedException - Specified by:
addUserin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidUserExceptionInvalidCredentialExceptionInvalidAuthenticationExceptionOperationFailedException
-
updateUser
public void updateUser(User user) throws InvalidUserException, UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
updateUserin interfaceCrowdClient- Throws:
InvalidUserExceptionUserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
renameUser
public User renameUser(String oldUsername, String newUsername) throws InvalidUserException, UserNotFoundException, OperationFailedException, ApplicationPermissionException, InvalidAuthenticationException - Specified by:
renameUserin interfaceCrowdClient- Throws:
InvalidUserExceptionUserNotFoundExceptionOperationFailedExceptionApplicationPermissionExceptionInvalidAuthenticationException
-
updateUserCredential
public void updateUserCredential(String username, String password) throws InvalidCredentialException, UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
updateUserCredentialin interfaceCrowdClient- Throws:
InvalidCredentialExceptionUserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
requestPasswordReset
public void requestPasswordReset(String username) throws UserNotFoundException, InvalidEmailAddressException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
requestPasswordResetin interfaceCrowdClient- Throws:
UserNotFoundExceptionInvalidEmailAddressExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
requestUsernames
public void requestUsernames(String email) throws InvalidEmailAddressException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
requestUsernamesin interfaceCrowdClient- Throws:
InvalidEmailAddressExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
storeUserAttributes
public void storeUserAttributes(String username, Map<String, Set<String>> attributes) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException- Specified by:
storeUserAttributesin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
removeUserAttributes
public void removeUserAttributes(String username, String attributeName) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
removeUserAttributesin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
removeUser
public void removeUser(String username) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
removeUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getGroup
public Group getGroup(String name) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException Get a group by name.- Specified by:
getGroupin interfaceCrowdClient- Parameters:
name- name of the group to retrieve.- Returns:
- A Group
- Throws:
GroupNotFoundException- The group does not exist on the remote server.OperationFailedException- For any other communication errors.ApplicationPermissionExceptionInvalidAuthenticationException
-
getGroupWithAttributes
public GroupWithAttributes getGroupWithAttributes(String name) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getGroupWithAttributesin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
addGroup
public void addGroup(Group group) throws InvalidGroupException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
addGroupin interfaceCrowdClient- Throws:
InvalidGroupExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
updateGroup
public void updateGroup(Group group) throws InvalidGroupException, GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
updateGroupin interfaceCrowdClient- Throws:
InvalidGroupExceptionGroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
storeGroupAttributes
public void storeGroupAttributes(String groupName, Map<String, Set<String>> attributes) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException- Specified by:
storeGroupAttributesin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
removeGroupAttributes
public void removeGroupAttributes(String groupName, String attributeName) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
removeGroupAttributesin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
removeGroup
public void removeGroup(String groupName) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
removeGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
isUserDirectGroupMember
public boolean isUserDirectGroupMember(String username, String groupName) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
isUserDirectGroupMemberin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
isUserNestedGroupMember
public boolean isUserNestedGroupMember(String username, String groupName) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
isUserNestedGroupMemberin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
isGroupDirectGroupMember
public boolean isGroupDirectGroupMember(String childName, String parentName) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
isGroupDirectGroupMemberin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
addUserToGroup
public void addUserToGroup(String username, String groupName) throws GroupNotFoundException, UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException, MembershipAlreadyExistsException -
addGroupToGroup
public void addGroupToGroup(String childGroup, String parentGroup) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException, MembershipAlreadyExistsException - Specified by:
addGroupToGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedExceptionMembershipAlreadyExistsException
-
removeUserFromGroup
public void removeUserFromGroup(String username, String groupName) throws MembershipNotFoundException, GroupNotFoundException, UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException -
removeGroupFromGroup
public void removeGroupFromGroup(String childGroup, String parentGroup) throws MembershipNotFoundException, GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
removeGroupFromGroupin interfaceCrowdClient- Throws:
MembershipNotFoundExceptionGroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
testConnection
public void testConnection() throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException- Specified by:
testConnectionin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchUsers
public List<User> searchUsers(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchUsersin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchUsersWithAttributes
public List<UserWithAttributes> searchUsersWithAttributes(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchUsersWithAttributesin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchUserNames
public List<String> searchUserNames(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchUserNamesin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchGroups
public List<Group> searchGroups(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchGroupsin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchGroupsWithAttributes
public List<GroupWithAttributes> searchGroupsWithAttributes(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchGroupsWithAttributesin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
searchGroupNames
public List<String> searchGroupNames(SearchRestriction searchRestriction, int startIndex, int maxResults) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
searchGroupNamesin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getUsersOfGroup
public List<User> getUsersOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getUsersOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfUsersOfGroup
public List<String> getNamesOfUsersOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfUsersOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getChildGroupsOfGroup
public List<Group> getChildGroupsOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getChildGroupsOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfChildGroupsOfGroup
public List<String> getNamesOfChildGroupsOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfChildGroupsOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getGroupsForUser
public List<Group> getGroupsForUser(String userName, int startIndex, int maxResults) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getGroupsForUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getGroupsWithAttributesForUser
public List<GroupWithAttributes> getGroupsWithAttributesForUser(String userName, int startIndex, int maxResults) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getGroupsWithAttributesForUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfGroupsForUser
public List<String> getNamesOfGroupsForUser(String userName, int startIndex, int maxResults) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfGroupsForUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getParentGroupsForGroup
public List<Group> getParentGroupsForGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getParentGroupsForGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfParentGroupsForGroup
public List<String> getNamesOfParentGroupsForGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfParentGroupsForGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNestedUsersOfGroup
public List<User> getNestedUsersOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNestedUsersOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfNestedUsersOfGroup
public List<String> getNamesOfNestedUsersOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfNestedUsersOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNestedChildGroupsOfGroup
public List<Group> getNestedChildGroupsOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNestedChildGroupsOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfNestedChildGroupsOfGroup
public List<String> getNamesOfNestedChildGroupsOfGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfNestedChildGroupsOfGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getGroupsForNestedUser
public List<Group> getGroupsForNestedUser(String userName, int startIndex, int maxResults) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getGroupsForNestedUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfGroupsForNestedUser
public List<String> getNamesOfGroupsForNestedUser(String userName, int startIndex, int maxResults) throws UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfGroupsForNestedUserin interfaceCrowdClient- Throws:
UserNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getParentGroupsForNestedGroup
public List<Group> getParentGroupsForNestedGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getParentGroupsForNestedGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getNamesOfParentGroupsForNestedGroup
public List<String> getNamesOfParentGroupsForNestedGroup(String groupName, int startIndex, int maxResults) throws GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNamesOfParentGroupsForNestedGroupin interfaceCrowdClient- Throws:
GroupNotFoundExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getMemberships
public Iterable<Membership> getMemberships() throws OperationFailedException, ApplicationPermissionException, InvalidAuthenticationException, UnsupportedCrowdApiException- Specified by:
getMembershipsin interfaceCrowdClient- Throws:
OperationFailedExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionUnsupportedCrowdApiException
-
findUserFromSSOToken
public User findUserFromSSOToken(String token) throws InvalidTokenException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
findUserFromSSOTokenin interfaceCrowdClient- Throws:
InvalidTokenExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
authenticateSSOUser
public String authenticateSSOUser(UserAuthenticationContext userAuthenticationContext) throws ApplicationAccessDeniedException, ExpiredCredentialException, InactiveAccountException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException -
authenticateSSOUser
public String authenticateSSOUser(UserAuthenticationContext userAuthenticationContext, long duration) throws ApplicationAccessDeniedException, ExpiredCredentialException, InactiveAccountException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException -
authenticateSSOUserWithoutValidatingPassword
public String authenticateSSOUserWithoutValidatingPassword(UserAuthenticationContext userAuthenticationContext) throws ApplicationAccessDeniedException, InactiveAccountException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException -
validateSSOAuthentication
public void validateSSOAuthentication(String token, List<ValidationFactor> validationFactors) throws InvalidTokenException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
validateSSOAuthenticationin interfaceCrowdClient- Throws:
InvalidTokenExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
validateSSOAuthenticationAndGetSession
public Session validateSSOAuthenticationAndGetSession(String token, List<ValidationFactor> validationFactors) throws InvalidTokenException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
validateSSOAuthenticationAndGetSessionin interfaceCrowdClient- Throws:
InvalidTokenExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
invalidateSSOToken
public void invalidateSSOToken(String token) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
invalidateSSOTokenin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
invalidateSSOTokensForUser
public void invalidateSSOTokensForUser(String username) throws OperationFailedException, ApplicationPermissionException, InvalidAuthenticationException, UnsupportedCrowdApiException - Specified by:
invalidateSSOTokensForUserin interfaceCrowdClient- Throws:
OperationFailedExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionUnsupportedCrowdApiException
-
invalidateSSOTokensForUser
public void invalidateSSOTokensForUser(String username, String exclude) throws OperationFailedException, ApplicationPermissionException, InvalidAuthenticationException, UnsupportedCrowdApiException - Specified by:
invalidateSSOTokensForUserin interfaceCrowdClient- Throws:
OperationFailedExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionUnsupportedCrowdApiException
-
getCookieConfiguration
public CookieConfiguration getCookieConfiguration() throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException- Specified by:
getCookieConfigurationin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceCrowdClient
-
getCurrentEventToken
public String getCurrentEventToken() throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException, IncrementalSynchronisationNotAvailableException -
getNewEvents
public Events getNewEvents(String eventToken) throws EventTokenExpiredException, ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
getNewEventsin interfaceCrowdClient- Throws:
EventTokenExpiredExceptionApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
getWebhook
public String getWebhook(long webhookId) throws InvalidAuthenticationException, ApplicationPermissionException, OperationFailedException, WebhookNotFoundException - Specified by:
getWebhookin interfaceCrowdClient- Throws:
InvalidAuthenticationExceptionApplicationPermissionExceptionOperationFailedExceptionWebhookNotFoundException
-
registerWebhook
public long registerWebhook(String endpointUrl, @Nullable String token) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException - Specified by:
registerWebhookin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
unregisterWebhook
public void unregisterWebhook(long webhookId) throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException, WebhookNotFoundException - Specified by:
unregisterWebhookin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedExceptionWebhookNotFoundException
-
expireAllPasswords
public void expireAllPasswords() throws ApplicationPermissionException, InvalidAuthenticationException, OperationFailedException- Specified by:
expireAllPasswordsin interfaceCrowdClient- Throws:
ApplicationPermissionExceptionInvalidAuthenticationExceptionOperationFailedException
-
RestCrowdClientFactorymethods