Skip navigation links

Oracle Fusion Middleware Oracle Platform Security Services API Reference
11g Release 1 (11.1.1)

E14650-01


oracle.security.jps
Interface ContextFactory

All Known Implementing Classes:
JpsContextFactory

public interface ContextFactory

This interface defines methods for retrieval of JpsContext instances.


Method Summary
 JpsContext getContext()
          Returns the default JpsContext <p/> return the system-level default JpsContext <p/> For J2SE standalone application deployments, the system-level default JpsContext corresponds to the default configuration set via the "oracle.security.jps.config" system property
 JpsContext getContext(java.lang.String name)
          Returns the JPS context associated with the specified name <p/> look for a configured JpsContext with the specified name in the system-level jps-config.xml return null if no configured JpsContext with the specified name can be found

 

Method Detail

getContext

JpsContext getContext()
                      throws JpsException
Returns the default JpsContext <p/>
  1. return the system-level default JpsContext
<p/> For J2SE standalone application deployments, the system-level default JpsContext corresponds to the default configuration set via the "oracle.security.jps.config" system property
Returns:
the default JpsContext
Throws:
JpsException - if an error condition is encountered during the invocation of this method

getContext

JpsContext getContext(java.lang.String name)
                      throws JpsException
Returns the JPS context associated with the specified name <p/>
  1. look for a configured JpsContext with the specified name in the system-level jps-config.xml
  2. return null if no configured JpsContext with the specified name can be found
Parameters:
name - name of the JpsContext to be looked up
Returns:
the JpsContext associated with the specified name, or null if not found.
Throws:
JpsException - if an error condition is encountered during the invocation of this method
See Also:
getContext()

Skip navigation links

Oracle Fusion Middleware Oracle Platform Security Services API Reference
11g Release 1 (11.1.1)

E14650-01


Copyright © 2009, Oracle. All rights reserved.