@Named public class IdpsResourceService extends Object
| Constructor and Description |
|---|
IdpsResourceService(IdpConfigService idpConfigService,
ApplicationStateValidator applicationStateValidator) |
| Modifier and Type | Method and Description |
|---|---|
IdpConfigEntity |
addConfig(IdpConfigEntity entity)
Update configuration of SSO from the data from
IdpConfigEntity. |
IdpConfigEntity |
getConfig(Long id) |
List<IdpConfigEntity> |
getConfigs(RestPageRequest pageRequest) |
IdpConfigEntity |
removeConfig(Long id) |
IdpConfigEntity |
updateConfig(Long id,
IdpConfigEntity entity) |
@Inject public IdpsResourceService(IdpConfigService idpConfigService, ApplicationStateValidator applicationStateValidator)
@Nonnull public List<IdpConfigEntity> getConfigs(RestPageRequest pageRequest)
pageRequest - determines how the results should be pagedpublic IdpConfigEntity getConfig(Long id)
@Nonnull public IdpConfigEntity addConfig(@Nonnull IdpConfigEntity entity)
IdpConfigEntity.
The entity may provide all the necessary fields to configure a given IdP, but it may also provide partial data to be updated. The latter behaviour will only work if the SSO protocol remains unchanged after the update.
InvalidConfigException - if the config is invalid due to user input errorsIllegalArgumentException - if the config is invalid due to wrong usage of the REST APIInsecureUrlException - if HTTPS protocol is not usedInvalidLicenseException - if the current product license does not allow the given SSO setup@Nonnull public IdpConfigEntity updateConfig(Long id, @Nonnull IdpConfigEntity entity)
public IdpConfigEntity removeConfig(Long id)
Copyright © 2023 Atlassian. All rights reserved.