Class AuthenticationServiceAttributeCache
- java.lang.Object
-
- com.sun.identity.authentication.service.AuthenticationServiceAttributeCache
-
- All Implemented Interfaces:
ServiceListener
public class AuthenticationServiceAttributeCache extends Object implements ServiceListener
This class is a cache for Authentication Configuration Service.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.sm.ServiceListener
ADDED, MODIFIED, REMOVED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,Set<String>>getServiceAttribute(String orgDN, String serviceName)Returns Auth Config Service attributes from cache.voidglobalConfigChanged(String serviceName, String version, String groupName, String component, int type)This method will be invoked when a service's global configuration data has been changed.voidorganizationConfigChanged(String serviceName, String version, String orgName, String goupName, String serviceComponent, int type)This method will be invoked when a service's organization configuration data has been changed.voidschemaChanged(String serviceName, String version)This method will be invoked when a service's schema has been changed.
-
-
-
Method Detail
-
getServiceAttribute
public static Map<String,Set<String>> getServiceAttribute(String orgDN, String serviceName) throws SMSException, AMConfigurationException, SSOException
Returns Auth Config Service attributes from cache.- Parameters:
orgDN- organization/realm name.serviceName- auth configuration service name.- Returns:
- service attributes.
- Throws:
SMSExceptionAMConfigurationExceptionSSOException
-
globalConfigChanged
public void globalConfigChanged(String serviceName, String version, String groupName, String component, int type)
Description copied from interface:ServiceListenerThis method will be invoked when a service's global configuration data has been changed. The parametergroupNamedenote the name of the configuration grouping (e.g. default) andserviceComponentdenotes the service's sub-component that changed (e.g./NamedPolicy,/Templates).- Specified by:
globalConfigChangedin interfaceServiceListener- Parameters:
serviceName- name of the service.version- version of the service.groupName- name of the configuration grouping.component- name of the service components that changed.type- change type, i.e., ADDED, REMOVED or MODIFIED.
-
schemaChanged
public void schemaChanged(String serviceName, String version)
Description copied from interface:ServiceListenerThis method will be invoked when a service's schema has been changed.- Specified by:
schemaChangedin interfaceServiceListener- Parameters:
serviceName- name of the serviceversion- version of the service
-
organizationConfigChanged
public void organizationConfigChanged(String serviceName, String version, String orgName, String goupName, String serviceComponent, int type)
This method will be invoked when a service's organization configuration data has been changed. It removes the invalid attributes from the cache cache if service configuration is modified or removed.- Specified by:
organizationConfigChangedin interfaceServiceListener- Parameters:
serviceName- Name of the service.version- Version of the service.orgName- Name of the organization.goupName- Name of the configuration grouping.serviceComponent- Name of the service components that changed.type- Change type, i.e., ADDED, REMOVED or MODIFIED.
-
-