@Singleton public class OAuth2ProviderSettingsFactory extends Object implements ServiceListener
ADDED, MODIFIED, REMOVED
Constructor and Description |
---|
OAuth2ProviderSettingsFactory(ResourceSetStoreFactory resourceSetStoreFactory,
OAuth2RealmResolver realmResolver,
ServiceConfigManagerFactory serviceConfigManagerFactory)
Constructs a new
OpenAMOAuth2ProviderSettingsFactory instance. |
Modifier and Type | Method and Description |
---|---|
OAuth2ProviderSettings |
get(org.forgerock.services.context.Context context)
Gets the instance of the OAuth2ProviderSettings.
|
OAuth2ProviderSettings |
get(OAuth2Request request)
Gets the instance of the OAuth2ProviderSettings
|
OAuth2ProviderSettings |
getRealmProviderSettings(String realm)
Gets the instance of the OAuth2ProviderSettings defined in the realm.
|
void |
globalConfigChanged(String serviceName,
String version,
String groupName,
String serviceComponent,
int type)
This method will be invoked when a service's global configuration data
has been changed.
|
void |
organizationConfigChanged(String serviceName,
String version,
String orgName,
String groupName,
String serviceComponent,
int type)
This method will be invoked when a service's organization configuration
data has been changed.
|
void |
schemaChanged(String serviceName,
String version)
This method will be invoked when a service's schema has been changed.
|
@Inject public OAuth2ProviderSettingsFactory(ResourceSetStoreFactory resourceSetStoreFactory, OAuth2RealmResolver realmResolver, ServiceConfigManagerFactory serviceConfigManagerFactory)
OpenAMOAuth2ProviderSettingsFactory
instance.resourceSetStoreFactory
- Factory for creating ResourceSetStore
instances.realmResolver
- Used to resolve the realm.serviceConfigManagerFactory
- Factory for creating ServiceConfigManager
instances.public OAuth2ProviderSettings getRealmProviderSettings(String realm) throws NotFoundException
realm
- The realm.NotFoundException
public OAuth2ProviderSettings get(org.forgerock.services.context.Context context) throws NotFoundException
context
- The context that can be used to obtain the base deployment url.NotFoundException
public OAuth2ProviderSettings get(OAuth2Request request) throws NotFoundException
request
- The OAuth2 request.NotFoundException
public void schemaChanged(String serviceName, String version)
ServiceListener
schemaChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the servicepublic void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
ServiceListener
groupName
denote the name
of the configuration grouping (e.g. default) and
serviceComponent
denotes the service's sub-component that
changed (e.g. /NamedPolicy
, /Templates
).globalConfigChanged
in interface ServiceListener
serviceName
- name of the service.version
- version of the service.groupName
- name of the configuration grouping.serviceComponent
- name of the service components that changed.type
- change type, i.e., ADDED, REMOVED or MODIFIED.public void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)
ServiceListener
orgName
,
groupName
and serviceComponent
denotes the
organization name, configuration grouping name and service's
sub-component that are changed respectively.organizationConfigChanged
in interface ServiceListener
serviceName
- name of the serviceversion
- version of the serviceorgName
- organization name as DNgroupName
- name of the configuration groupingserviceComponent
- the name of the service components that changedtype
- change type, i.e., ADDED, REMOVED or MODIFIEDCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.