public final class ResourceAccessManagerFactory
extends java.lang.Object
ResourceAccessManager
instance.Modifier and Type | Method and Description |
---|---|
ResourceAccessManager |
createResourceManager(java.util.Set<? extends java.lang.Object> info)
Creates a new
ResourceAccessManager instance and returns it. |
static java.lang.String |
getJAASConfiguration(java.lang.String csURL,
java.lang.String[] contexts)
Deprecated.
As of CentraSite 9.0
|
static java.lang.String |
getJAASConfiguration(java.lang.String csURL,
java.lang.String[] contexts,
java.lang.String csUser,
java.lang.String csUserPwd)
Deprecated.
As of CentraSite 9.0
|
static ResourceAccessManagerFactory |
newInstance()
Static method creating a new instance of
ResourceAccessManagerFactory . |
public static ResourceAccessManagerFactory newInstance()
ResourceAccessManagerFactory
.ResourceAccessManagerFactory
instancepublic ResourceAccessManager createResourceManager(java.util.Set<? extends java.lang.Object> info) throws java.lang.Exception
ResourceAccessManager
instance and returns it. ResourceAccessManager
then that
ResourceAccessManager
will be returned rather than a new instance being created.
System properties:
The info object set should have the following content:
Properties
collection.
Credentials can be any one of the following:
Required configuration includes:
Example configuration
HashSet<Object> info = new HashSet<Object>();
Properties properties = new Properties();
// the locale is used in Resource Access API as well
properties.setProperty(Constants.LOCALE_PROPERTY, Locale.US.toString());
properties.setProperty("javax.xml.registry.queryManagerURL", DEFAULT_URL);
properties.setProperty("com.centrasite.jaxr.BrowserBehaviour", "yes");
info.add(properties);
PasswordAuthentication authentication = new PasswordAuthentication(USER, PASSWORD);
info.add(authentication);
ResourceAccessManager ram = factory.createResourceManager(info);
info
- The object set which contains the above mentioned informationResourceAccessManager
java.lang.Exception
- If an error is encountered while trying to instantiate the ResourceAccessManager
instancepublic static java.lang.String getJAASConfiguration(java.lang.String csURL, java.lang.String[] contexts) throws java.io.IOException
csURL
- The CentraSite URL for which the JAAS configuration is requiredcontexts
- The contexts (security contexts)java.io.IOException
- If an error is encountered while trying to fetch the JAAS configuration informationpublic static java.lang.String getJAASConfiguration(java.lang.String csURL, java.lang.String[] contexts, java.lang.String csUser, java.lang.String csUserPwd) throws java.io.IOException
csURL
- The CentraSite URL for which the JAAS configuration is requiredcontexts
- The contexts (security contexts)csUser
- The user name for connecting to CentraSitecsUserPwd
- The password for the userjava.io.IOException
- If an error is encountered while trying to fetch the JAAS configuration information