public interface SecurityServerClient
for a singleton factory implementation.
Modifier and Type | Method and Description |
---|---|
void |
addAllPrincipals(Collection<SOAPPrincipalWithCredential> principals)
Adds principals to the application's assigned directory.
|
void |
addAttributeToGroup(String group,
SOAPAttribute attribute)
Adds an attribute to a group that is in the application's assigned directory.
|
void |
addAttributeToPrincipal(String principal,
SOAPAttribute attribute)
Adds an attribute to a principal who is in the application's assigned directory.
|
SOAPGroup |
addGroup(SOAPGroup group)
Adds a group to the application's assigned directory.
|
SOAPPrincipal |
addPrincipal(SOAPPrincipal principal,
PasswordCredential credential)
Adds a principal to the application's assigned directory.
|
void |
addPrincipalToGroup(String principal,
String group)
Adds a principal to a group for the application's assigned directory.
|
void |
addPrincipalToRole(String principal,
String role)
Deprecated.
|
SOAPRole |
addRole(SOAPRole role)
Deprecated.
|
void |
authenticate()
Authenticate the client using the application name and password
from crowd.properties.
|
String |
authenticatePrincipal(UserAuthenticationContext userAuthenticationContext)
Authenticates a principal who is in the application's assigned directory.
|
String |
authenticatePrincipalSimple(String username,
String password)
Authenticates a principal without SSO details utilizing centralized authentication only.
|
String |
createPrincipalToken(String username,
ValidationFactor[] validationFactors)
Authenticates a principal without validating a password.
|
String[] |
findAllGroupNames()
Finds all of the groups who are visible in the application's assigned directory.
|
SOAPNestableGroup[] |
findAllGroupRelationships()
Finds all of the groups who are visible in the application's assigned directory.
|
SOAPGroup[] |
findAllGroups()
Retrieves all groups in the application's assigned directories.
|
String[] |
findAllPrincipalNames()
Finds all of the principals who are visible in the application's assigned directory.
|
SOAPPrincipal[] |
findAllPrincipals()
Retrieves all principals in the application's assigned directories.
|
String[] |
findAllRoleNames()
Deprecated.
|
SOAPRole[] |
findAllRoles()
Deprecated.
|
SOAPGroup |
findGroupByName(String name)
Find a group by name for the application's assigned directory.
|
String[] |
findGroupMemberships(String principalName)
Finds all the groups the principal is a direct member of.
|
SOAPGroup |
findGroupWithAttributesByName(String name)
Find a group by name for the application's assigned directory.
|
SOAPPrincipal |
findPrincipalByName(String name)
Finds a principal by name who is in the application's assigned directory.
|
SOAPPrincipal |
findPrincipalByToken(String key)
Finds a principal by token.
|
SOAPPrincipal |
findPrincipalWithAttributesByName(String name)
Finds a principal by name who is in the application's assigned directory.
|
SOAPRole |
findRoleByName(String name)
Deprecated.
|
String[] |
findRoleMemberships(String principalName)
Deprecated.
|
long |
getCacheTime()
Deprecated.
This method is now implemented by the
crowd-ehcache.xml configuration file. |
SOAPCookieInfo |
getCookieInfo()
Returns information needed to set the SSO cookie correctly.
|
String |
getDomain()
This will return the domain configured in Crowd or null if no domain has been set.
|
String[] |
getGrantedAuthorities()
Will return the List of group names that have been given access to connect to the application
|
SoapClientProperties |
getSoapClientProperties()
Retrieve the SOAP client properties used to connect to the Crowd Security Server.
|
void |
invalidateToken(String token)
Invalidates a principal token for all integrated applications.
|
boolean |
isCacheEnabled()
Checks if the client application should cache security information from the Crowd server.
|
boolean |
isGroupMember(String group,
String principal)
Checks if a principal is a member of a group for the application's assigned directory.
|
boolean |
isRoleMember(String role,
String principal)
Deprecated.
|
boolean |
isValidToken(String principalToken,
ValidationFactor[] validationFactors)
Checks if the principal's current token is still valid.
|
void |
removeAttributeFromGroup(String group,
String attribute)
Removes an attribute from a group that is in the application's assigned directory.
|
void |
removeAttributeFromPrincipal(String principal,
String attribute)
Removes an attribute from a principal who is in the application's assigned directory.
|
void |
removeGroup(String group)
Removes a group from the application's assigned directory.
|
void |
removePrincipal(String principal)
Removes a principal from the application's assigned directory.
|
void |
removePrincipalFromGroup(String principal,
String group)
Removes a principal from a group for the application's assigned directory.
|
void |
removePrincipalFromRole(String principal,
String role)
Deprecated.
|
void |
removeRole(String role)
Deprecated.
|
void |
resetPrincipalCredential(String principal)
Resets a principal's password credential to a random password and emails the new password who is in the application's assigned directory.
|
SOAPGroup[] |
searchGroups(SearchRestriction[] searchRestrictions)
Searches for groups that are in the application's assigned directory.
|
SOAPPrincipal[] |
searchPrincipals(SearchRestriction[] searchRestrictions)
Searches for principals that are in the application's assigned directory.
|
SOAPRole[] |
searchRoles(SearchRestriction[] searchRestrictions)
Deprecated.
|
void |
updateGroup(String group,
String description,
boolean active)
Updates the first group located from the list of directories assigned to an application
Available fields that can be updated are
description and active |
void |
updateGroupAttribute(String name,
SOAPAttribute attribute)
Updates an attribute for a group that is in the application's assigned directory.
|
void |
updatePrincipalAttribute(String name,
SOAPAttribute attribute)
Updates an attribute for a principal who is in the application's assigned directory.
|
void |
updatePrincipalCredential(String principal,
PasswordCredential credential)
Updates the password credential for a principal who is in the application's assigned directory.
|
void authenticate() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
NOTE: this will perform an explicit authentication call to the server. There is no reason to directly call this as all the methods will automatically attempt to authenticate when required.
RemoteException
- there was a problem communicating with the Crowd Security Server.InvalidAuthorizationTokenException
- the newly created application token is invalid.InvalidAuthenticationException
- application authentication is not valid. Ensure the application.password
in crowd.properties matches the one defined in the Crowd console.String authenticatePrincipal(UserAuthenticationContext userAuthenticationContext) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException, InactiveAccountException, ApplicationAccessDeniedException, ExpiredCredentialException
userAuthenticationContext
- The principal's authentication details.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- The principal's authentication details were invalid.InactiveAccountException
- The principal's account is not active.ApplicationAccessDeniedException
- if the user does not have access to this application.ExpiredCredentialException
- The user's credentials have expired.boolean isValidToken(String principalToken, ValidationFactor[] validationFactors) throws RemoteException, InvalidAuthorizationTokenException, ApplicationAccessDeniedException, InvalidAuthenticationException
principalToken
- The token to check.validationFactors
- The known identity factors used when creating the principal's token.true
if and only if the token is active, otherwise false
.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.ApplicationAccessDeniedException
- if the user does not have access to this application.InvalidAuthenticationException
- application authentication is not validvoid invalidateToken(String token) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
token
- The token to invalidate.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPGroup[] searchGroups(SearchRestriction[] searchRestrictions) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
searchRestrictions
- The search restrictions to use when performing this search.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal[] searchPrincipals(SearchRestriction[] searchRestrictions) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
searchRestrictions
- The search restrictions to use when performing this search.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPRole[] searchRoles(SearchRestriction[] searchRestrictions) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
searchRestrictions
- The search restrictions to use when performing this search.RemoteException
- An unknown remote exception occured.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPGroup[] findAllGroups() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPRole[] findAllRoles() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal[] findAllPrincipals() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPGroup addGroup(SOAPGroup group) throws RemoteException, InvalidGroupException, InvalidAuthorizationTokenException, ApplicationPermissionException, InvalidAuthenticationException
group
- The group to add.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidGroupException
- An error occured adding the group to the directory server.ApplicationPermissionException
- The application does not have the proper permissions to add the entity to the directory server.InvalidAuthenticationException
- application authentication is not validvoid updateGroup(String group, String description, boolean active) throws RemoteException, GroupNotFoundException, ApplicationPermissionException, InvalidAuthorizationTokenException, InvalidAuthenticationException
description
and active
group
- The name of the group to update.description
- the new description of the group.active
- the new active flag for the group.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.ApplicationPermissionException
- The application does not have the proper permissions to update the entity to the directory server.GroupNotFoundException
- no groups matching the supplied name is found.InvalidAuthenticationException
- application authentication is not validSOAPGroup findGroupByName(String name) throws RemoteException, InvalidAuthorizationTokenException, GroupNotFoundException, InvalidAuthenticationException
name
- The name of the group.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find the specific group.InvalidAuthenticationException
- application authentication is not validSOAPGroup findGroupWithAttributesByName(String name) throws RemoteException, InvalidAuthorizationTokenException, GroupNotFoundException, InvalidAuthenticationException
This will retrieve the group and all its attributes.
name
- The name of the group.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find the specific group.InvalidAuthenticationException
- application authentication is not validSOAPRole addRole(SOAPRole role) throws RemoteException, InvalidAuthorizationTokenException, InvalidRoleException, ApplicationPermissionException, InvalidAuthenticationException
role
- The name of the role.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidRoleException
- An error occured adding the role to the directory server.ApplicationPermissionException
- The application does not have the proper permissions to add the entity to the directory server.InvalidAuthenticationException
- application authentication is not validSOAPRole findRoleByName(String name) throws RemoteException, InvalidAuthorizationTokenException, GroupNotFoundException, InvalidAuthenticationException
name
- The name of the role.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find the specified role.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal findPrincipalByToken(String key) throws RemoteException, InvalidTokenException, InvalidAuthorizationTokenException, InvalidAuthenticationException
key
- The principal's token.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.RemoteException
- An unknown remote exception occurred.InvalidTokenException
- Unable to find the specified token.InvalidAuthenticationException
- application authentication is not validvoid updatePrincipalAttribute(String name, SOAPAttribute attribute) throws RemoteException, UserNotFoundException, ApplicationPermissionException, InvalidAuthorizationTokenException, InvalidAuthenticationException
Note: This is the same as calling addAttributeToPrincipal
name
- The name of the principal.attribute
- The name of the attribute to update.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- Unable to find the specified principal.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validvoid updateGroupAttribute(String name, SOAPAttribute attribute) throws RemoteException, GroupNotFoundException, ApplicationPermissionException, InvalidAuthorizationTokenException, InvalidAuthenticationException
Note: This is the same as calling addAttributeToGroup
name
- The name of the group.attribute
- The name of the attribute to update.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find the specified principal.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal findPrincipalByName(String name) throws RemoteException, InvalidAuthorizationTokenException, UserNotFoundException, InvalidAuthenticationException
name
- The name of the principal.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- Unable to find the specified principal.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal findPrincipalWithAttributesByName(String name) throws RemoteException, UserNotFoundException, InvalidAuthorizationTokenException, InvalidAuthenticationException
This will retrieve the principal and all its attributes.
name
- The name of the principal.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- Unable to find the specified principal.InvalidAuthenticationException
- application authentication is not validvoid addAllPrincipals(Collection<SOAPPrincipalWithCredential> principals) throws InvalidAuthorizationTokenException, RemoteException, ApplicationPermissionException, BulkAddFailedException, InvalidAuthenticationException
principals
- Array of SOAPPrincipalWithCredential
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.ApplicationPermissionException
- thrown when no Create User Permission for any of the directories.BulkAddFailedException
- throw when it failed to create a user in of the directories.InvalidAuthenticationException
- application authentication is not validSOAPPrincipal addPrincipal(SOAPPrincipal principal, PasswordCredential credential) throws RemoteException, InvalidAuthorizationTokenException, InvalidCredentialException, InvalidUserException, ApplicationPermissionException, InvalidAuthenticationException
principal
- The populated principal object to added.credential
- The password for the principal.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.RemoteException
- An unknown remote exception occured.InvalidCredentialException
- The supplied password is invalid.InvalidUserException
- The supplied principal is invalid.ApplicationPermissionException
- The application does not have the proper permissions to add the entity to the directory server.InvalidAuthenticationException
- application authentication is not validvoid addPrincipalToGroup(String principal, String group) throws RemoteException, InvalidAuthorizationTokenException, UserNotFoundException, GroupNotFoundException, ApplicationPermissionException, InvalidAuthenticationException
principal
- The name of the principal.group
- The name of the group.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find group by name.UserNotFoundException
- Unable to find user by name.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validvoid updatePrincipalCredential(String principal, PasswordCredential credential) throws RemoteException, InvalidAuthorizationTokenException, InvalidCredentialException, UserNotFoundException, ApplicationPermissionException, InvalidAuthenticationException
principal
- The name of the principal.credential
- The password.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- Unable to find the specified principal.InvalidCredentialException
- The supplied password is invalid.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validvoid resetPrincipalCredential(String principal) throws RemoteException, InvalidEmailAddressException, InvalidCredentialException, UserNotFoundException, ApplicationPermissionException, InvalidAuthorizationTokenException, InvalidAuthenticationException
principal
- The name of the principal.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidCredentialException
- Unable to reset the principal's password.UserNotFoundException
- Unable to find the specified principal.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validInvalidEmailAddressException
- invalid email addressvoid removeGroup(String group) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, GroupNotFoundException, InvalidAuthenticationException
group
- The name of the group.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- Unable to find the specified group.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validvoid removeRole(String role) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, GroupNotFoundException, InvalidAuthenticationException
role
- The name of the role.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- The specified role is invalid.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validvoid removePrincipal(String principal) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, UserNotFoundException, InvalidAuthenticationException
principal
- The name of the principal.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- The specified principal is invalid.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validvoid addPrincipalToRole(String principal, String role) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, UserNotFoundException, GroupNotFoundException, InvalidAuthenticationException
principal
- The name of the principal.role
- The name of the role.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- Unable to user by nameGroupNotFoundException
- Unable to group (of type Role) by name.ApplicationPermissionException
- The application does not have the proper permissions to update the entity to the directory server.InvalidAuthenticationException
- application authentication is not validboolean isGroupMember(String group, String principal) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
group
- The name of the group.principal
- The name of the principal.true
if and only if the principal is a group member, otherwise false
.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validboolean isRoleMember(String role, String principal) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
role
- The name of the role.principal
- The name of the principal.true
if and only if the principal is a role member, otherwise false
.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validvoid removePrincipalFromGroup(String principal, String group) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, GroupNotFoundException, UserNotFoundException, MembershipNotFoundException, InvalidAuthenticationException
principal
- The name of the principal.group
- The name of the group.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.RemoteException
- An unknown remote exception occurred.UserNotFoundException
- Unable to find user by nameGroupNotFoundException
- Unable to find group by name.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validMembershipNotFoundException
- Unable to find the membershipvoid removePrincipalFromRole(String principal, String role) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, UserNotFoundException, GroupNotFoundException, MembershipNotFoundException, InvalidAuthenticationException
principal
- The name of the principal.role
- The name of the role.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.RemoteException
- An unknown remote exception occurred.UserNotFoundException
- Unable to find user by nameGroupNotFoundException
- Unable to find group (of type Role) by name.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validMembershipNotFoundException
- Unable to find the membershipvoid addAttributeToPrincipal(String principal, SOAPAttribute attribute) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, UserNotFoundException, InvalidAuthenticationException
Note: This is the same as calling updatePrincipalAttribute
principal
- The name of the principal.attribute
- The name attribute to add.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- The specified principal is invalid.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validvoid removeAttributeFromPrincipal(String principal, String attribute) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, UserNotFoundException, InvalidAuthenticationException
principal
- The name of the principal.attribute
- The name of the attribute.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- The specified principal is invalid.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validvoid addAttributeToGroup(String group, SOAPAttribute attribute) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, GroupNotFoundException, InvalidAuthenticationException
Note: This is the same as calling updateGroupAttribute
group
- The name of the group.attribute
- The name attribute to add.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- The specified group is invalid.ApplicationPermissionException
- The application does not have the proper permissions to update the entity in the directory server.InvalidAuthenticationException
- application authentication is not validvoid removeAttributeFromGroup(String group, String attribute) throws RemoteException, InvalidAuthorizationTokenException, ApplicationPermissionException, GroupNotFoundException, InvalidAuthenticationException
Note: This is the same as calling updateGroupAttribute
group
- The name of the group.attribute
- The name of the attribute.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.GroupNotFoundException
- The specified principal is invalid.ApplicationPermissionException
- The application does not have the proper permissions to remove the entity from the directory server.InvalidAuthenticationException
- application authentication is not validlong getCacheTime() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
crowd-ehcache.xml
configuration file.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validboolean isCacheEnabled() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
true
if and only if the cache is enabled, otherwise false
.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validString getDomain() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validString[] findAllPrincipalNames() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validString[] findAllGroupNames() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
String
listing of the group names.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSOAPNestableGroup[] findAllGroupRelationships() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
SOAPNestableGroup
listing of the groups, plus any direct sub-groups.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validString[] findAllRoleNames() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
String
listing of the role names.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validString[] findGroupMemberships(String principalName) throws RemoteException, InvalidAuthorizationTokenException, UserNotFoundException, InvalidAuthenticationException
principalName
- The name of the principal to use when performing the lookup.String
listing of the principal's group memberships.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- The principal was not foundInvalidAuthenticationException
- application authentication is not validString[] findRoleMemberships(String principalName) throws RemoteException, InvalidAuthorizationTokenException, UserNotFoundException, InvalidAuthenticationException
principalName
- The name of the principal to use role performing the lookup.String
listing of the principal's group memberships.RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.UserNotFoundException
- The principal was not foundInvalidAuthenticationException
- application authentication is not validString authenticatePrincipalSimple(String username, String password) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException, InactiveAccountException, ApplicationAccessDeniedException, ExpiredCredentialException
username
- The username of the principal.password
- The password credential.RemoteException
- An unknown remote exception occurred.InvalidAuthenticationException
- An invalid authentication occurred.InvalidAuthorizationTokenException
- An invalid authentication occurred.InactiveAccountException
- The principal's account is inactive.ApplicationAccessDeniedException
- user does not have access to the application.ExpiredCredentialException
- The user's credentials have expired. The user must change their credentials in order to successfully authenticate.String createPrincipalToken(String username, ValidationFactor[] validationFactors) throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException, InactiveAccountException, ApplicationAccessDeniedException
username
- The username to create an authenticate token for.validationFactors
- The known attributes of the user to use when creating a token, such as their remote IP address and user-agent.RemoteException
- An unknown remote exception occurred.InvalidAuthenticationException
- An invalid authentication occurred.InvalidAuthorizationTokenException
- An invalid authentication occurred.InactiveAccountException
- The principal's account is inactive.ApplicationAccessDeniedException
- user does not have access to authenticate against applicationString[] getGrantedAuthorities() throws InvalidAuthorizationTokenException, RemoteException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- An invalid authentication occurred.InvalidAuthenticationException
- application authentication is not validSOAPCookieInfo getCookieInfo() throws RemoteException, InvalidAuthorizationTokenException, InvalidAuthenticationException
RemoteException
- An unknown remote exception occurred.InvalidAuthorizationTokenException
- The calling application's applicationToken
is invalid.InvalidAuthenticationException
- application authentication is not validSoapClientProperties getSoapClientProperties()
Copyright © 2021 Atlassian. All rights reserved.