Skip navigation links
oracle.security.opss.service.config
Class ConfigurationServiceProvider
java.lang.Object
oracle.security.opss.service.config.ConfigurationServiceProvider
- All Implemented Interfaces:
- ServiceProvider, OpssServiceProvider
-
public abstract class ConfigurationServiceProvider
- extends java.lang.Object
- implements OpssServiceProvider
- Author:
- vbkumarjayanti
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_IMPL_CLASS
public static final java.lang.String DEFAULT_IMPL_CLASS
-
- See Also:
- Constant Field Values
ConfigurationServiceProvider
public ConfigurationServiceProvider()
getConfigurationService
public abstract ConfigurationService getConfigurationService()
throws ConfigurationException
- A Configuration Service obtained in this way can only serve the configuration from the OOTB jps-config.xml and is unaware of any Configuration Repository
-
- Returns:
- ConfigurationService instance using the default OOTB jps-config.xml
- Throws:
ConfigurationException
- Any exception during initialization of ConfigurationService service
getConfigurationService
public abstract ConfigurationService getConfigurationService(java.net.URI jpsConfigPath)
throws ConfigurationException
- A Configuration Service obtained in this way can only serve the configuration from the specified jps-config.xml and is unaware of any Configuration Repository
-
- Parameters:
jpsConfigPath
- path to jps-config.xml
- Returns:
- ConfigurationService instance
- Throws:
ConfigurationException
- Any exception during initialization of ConfigurationService service
getConfigurationService
public abstract ConfigurationService getConfigurationService(java.io.InputStream is)
throws ConfigurationException
- A Configuration Service obtained in this way can only serve the configuration from the specified stream and is unaware of any Configuration Repository
-
- Parameters:
is
- Input stream of jps-config
- Returns:
- ConfigurationService instance
- Throws:
ConfigurationException
- Any exception during initialization of ConfigurationService service
getInstance
public abstract ConfigurationService getInstance(ServiceInstanceDescriptor serviceDesc,
javax.security.auth.callback.CallbackHandler cbHandler)
throws ConfigurationException
- Description copied from interface:
OpssServiceProvider
- Creates a ServiceInstance in Init state.
-
- Specified by:
getInstance
in interface OpssServiceProvider
-
- Returns:
- a ServiceInstance
- Throws:
ConfigurationException
getConfigurationService
public abstract <T extends JpsConfigurationPMetaFactory> ConfigurationService getConfigurationService(java.lang.Class<T> persistenceMetaFactoryClass,
java.util.Properties props)
throws ConfigurationException
- A Configuration Service obtained in this way can only serve the configuration as understood by the supplied JpsConfigurationPMetaFactory implementation class. Serves as a way to allow pluggability of Configuration Persistence Layer. This method allows OPSS Clients (who may possibly not have a jps-config.xml in their environment) to supply their own custom implementation of the Persistence Layer Configuration Elements. The Configuration Service would then be able to create and manage the Runtime and Management Configuration Views for the configuration.
-
- Parameters:
persistenceMetaFactoryClass
- Class object which implements the JpsConfigurationPMetaFactory
props
- properties to be passed to the MetaFactory implementation class constructor.
- Returns:
- ConfigurationService instance
- Throws:
ConfigurationException
newInstance
public static ConfigurationServiceProvider newInstance()
Skip navigation links
Copyright © 2011, 2015, Oracle and/or its affiliates. All rights reserved.