|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.security.api.UMFactory
The UMFactory class provides functionality to get access to implementations
of factory classes. Applications access all the functionality through this
class.
The UMFactory can be initialized in 2 ways: either the function
#initialize(Properties, HashMap)
is called or the first call to
getInstance() initializes the factory.
| Field Summary | |
static java.lang.String |
VERSIONSTRING
Description of the Field |
| Method Summary | |
static void |
addSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
|
static IAclManager |
getAclManager()
Gets the default Access Control List (ACL) Manager. |
static IAclManager |
getAclManager(java.lang.String applicationId)
Gets an application specific Access Control List (ACL) Manager. |
static java.lang.String[] |
getAllAclManagers()
Returns an array of all used Access Control List (ACL) Managers. |
static IAnonymousUserFactory |
getAnonymousUserFactory()
Gets the anonymous user factory for retrieving anonymous user. |
static IAuthentication |
getAuthenticator()
getAuthenticator provides access to an implementation of IAuthentication |
static java.lang.String |
getDatabaseVendor()
Gets the database vendor |
static java.lang.Object |
getDataSourceClass()
getDataSourceClass gets a dataSourceClass which is used for PCD role handling |
static IUserFactory |
getDefaultFactory()
Deprecated. : use getUserFactory() instead |
static IGroupFactory |
getGroupFactory()
Returns an implementation of IGroupFactory. |
static UMFactory |
getInstance()
Returns the instance of UMFactory. |
static java.lang.Object |
getLoggerClass()
Deprecated. |
static ILogonAuthentication |
getLogonAuthenticator()
getLogonAuthenticator provides access to an implementation of ILogonAuthentication |
static IPrincipalFactory |
getPrincipalFactory()
Returns an implementation of IPrincipalFactory. |
static com.sap.security.api.util.IUMParameters |
getProperties()
Get access to UMParameters interface |
static IRoleFactory |
getRoleFactory()
Returns an implementation of IRoleFactory. |
static java.lang.SecurityManager |
getSecurityManager()
A method in the usermanagement that wants to check whether the caller is allowed to call it should call this method instead of System.getSecurityManager() to get a security manager to perfom the checkPermission call. |
static ISecurityPolicy |
getSecurityPolicy()
getSecurityPolicy provides access to the security policy object |
static com.sap.security.api.srvUser.IServiceUserFactory |
getServiceUserFactory()
Returns an implementation of IServiceUserFactory. |
static java.util.ArrayList |
getSystemLandscapeWrappers()
|
TicketVerifier |
getTicketVerifier()
getTicketVerifier provides access to an object which can be used for verifing Tickets |
static com.sap.security.api.util.IUMFileIO |
getUMFileIO()
|
static IUserAccountFactory |
getUserAccountFactory()
Returns an implementation of IUserAccountFactory. |
static IUserFactory |
getUserFactory()
Returns an implementation of IUserFactory. |
static IUserMapping |
getUserMapping()
Gets the global user mapping object. |
static void |
initialize(java.util.Properties prop,
java.util.HashMap files,
com.sap.security.api.util.IUMFileIO fileio)
initialize the UMFactory manually. |
static void |
initialize(java.lang.String umeCfgPath)
Initialize the UMFactory manually. |
static boolean |
isInitialized()
isInitialized provides information about the state of UMFactory. |
static void |
removeSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
|
static void |
setClassLoader(java.lang.ClassLoader loader)
Deprecated. applications should not use this method. |
static void |
setDataSourceClass(java.lang.Object dataSourceClass)
setDataSourceClass sets a dataSourceClass which is used for PCD role handling |
static void |
setLoggerClass(java.lang.Object loggerClass)
Deprecated. |
static void |
setSecurityManager(java.lang.SecurityManager securitymanager)
Sets the security manager that is used to protect the API. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String VERSIONSTRING
| Method Detail |
public static ILogonAuthentication getLogonAuthenticator()
ILogonAuthenticationpublic static IAuthentication getAuthenticator()
IAuthenticationpublic static void setClassLoader(java.lang.ClassLoader loader)
public static void setSecurityManager(java.lang.SecurityManager securitymanager)
securitymanager - security manager to be usedjava.lang.IllegalStateException - in case this method has already
been called before or there is a system security managerpublic static java.lang.SecurityManager getSecurityManager()
public static IUserFactory getDefaultFactory()
getUserFactory() instead
public static IUserMapping getUserMapping()
public static IGroupFactory getGroupFactory()
public static com.sap.security.api.util.IUMFileIO getUMFileIO()
public static UMFactory getInstance()
UMFactory is not already initialized this function throws
an IllegalStateException.
Note: UMFactory will be initialized by EP6 Portal or J2EE Engine 630.
If UMFactory should be used standalone, it has to be initialized explicitly with
the method initialize(String umeCfgPath)UMFactoryjava.lang.IllegalStateException - If the UMFactory is not
already initialized.public static com.sap.security.api.util.IUMParameters getProperties()
UMParameters interfaceIUMParameterspublic static IRoleFactory getRoleFactory()
public static IUserAccountFactory getUserAccountFactory()
public static IPrincipalFactory getPrincipalFactory()
public static IUserFactory getUserFactory()
public static com.sap.security.api.srvUser.IServiceUserFactory getServiceUserFactory()
Only released for internal use
public static IAclManager getAclManager()
public static IAclManager getAclManager(java.lang.String applicationId)
public static java.lang.String[] getAllAclManagers()
public static void initialize(java.lang.String umeCfgPath)
umeCfgPath - String object that contains the path
to the sapum.properties file and the additional xml files
public static void initialize(java.util.Properties prop,
java.util.HashMap files,
com.sap.security.api.util.IUMFileIO fileio)
prop - Property object that contains all sapum.properties (it should consider
the search path that is defined). Must not be null.files - This is a HashMap containing name/byte[] pairs of files which can be
read with IUMParameters.getInputStream(String).
name should be plain names without path. Can be empty, should not be null.fileio - Implements IUMFileIO for reading/writing filespublic static java.lang.String getDatabaseVendor()
Only released for internal use
public TicketVerifier getTicketVerifier()
TicketVerifierpublic static void addSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
public static java.util.ArrayList getSystemLandscapeWrappers()
public static void removeSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
public static IAnonymousUserFactory getAnonymousUserFactory()
public static ISecurityPolicy getSecurityPolicy()
ISecurityPolicypublic static void setDataSourceClass(java.lang.Object dataSourceClass)
NOTE: only released for internal use
public static java.lang.Object getDataSourceClass()
NOTE: only released for internal use
public static void setLoggerClass(java.lang.Object loggerClass)
NOTE: only released for internal use
public static java.lang.Object getLoggerClass()
NOTE: only released for internal use
public static boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||