public class ServiceFactoryLocator extends Object
ServiceFactory instances in plain Java
or client container environments.| Modifier and Type | Method and Description |
|---|---|
static ServiceFactory |
get(int loginType)
Retrieves a service factory using separately provided credentials.
|
static ServiceFactory |
get(int loginType,
Map properties)
Retrieves a service factory using separately provided credentials.
|
static ServiceFactory |
get(Map credentials)
Retrieves a service factory using explicitly provided credentials.
|
static ServiceFactory |
get(Map credentials,
Map properties)
Retrieves a service factory using explicitly provided credentials.
|
static ServiceFactory |
get(String user,
String password)
Retrieves a service factory using the given name/password pair as credentials.
|
static ServiceFactory |
get(String user,
String password,
Map properties)
Retrieves a service factory using the given name/password pair as credentials.
|
static boolean |
hasMultipleIdentities()
Indicates whether the currently configured CARNOT security configuration allows
CARNOT services with different principals contrary to a single JVM wide principal.
|
public static ServiceFactory get(int loginType) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
loginType - org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(int loginType, Map properties) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
loginType - properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(Map credentials) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
credentials - The credentials to be used.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(Map credentials, Map properties) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
credentials - The credentials to be used.properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(String user, String password) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
user - The user name to be used.password - The password to be used.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static ServiceFactory get(String user, String password, Map properties) throws org.eclipse.stardust.common.error.PublicException, org.eclipse.stardust.common.error.LoginFailedException
user - The user name to be used.password - The password to be used.properties - Additional properties.org.eclipse.stardust.common.error.PublicExceptionorg.eclipse.stardust.common.error.LoginFailedExceptionpublic static boolean hasMultipleIdentities()
throws org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.PublicExceptionCopyright © 2016 Eclipse Stardust. All Rights Reserved.