|
||||||||||
| 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, IUMFileIO)
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)
NOTE: Released for internal use only. |
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()
NOTE: Released for internal use only Gets the database vendor |
static java.lang.Object |
getDataSourceClass()
NOTE: Released for internal use only. |
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()
NOTE: Released for internal use only. |
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 IServiceUserFactory |
getServiceUserFactory()
NOTE: Released for internal use only Returns an implementation of IServiceUserFactory. |
static java.util.ArrayList |
getSystemLandscapeWrappers()
Retrieve the list of all ISystemLandscapeWrapper
implementations that are currently registered. |
TicketVerifier |
getTicketVerifier()
getTicketVerifier provides access to an object which can be used for verifing Tickets |
static com.sap.security.api.util.IUMFileIO |
getUMFileIO()
NOTE: Released for internal use only. |
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 which provides access to all user mapping data. |
static void |
initialize(java.util.Properties prop,
java.util.HashMap files,
com.sap.security.api.util.IUMFileIO fileio)
NOTE: Released for internal use only. |
static void |
initialize(java.lang.String umeCfgPath)
NOTE: Released for internal use only. |
static boolean |
isInitialized()
isInitialized provides information about the state of UMFactory. |
static void |
removeSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
NOTE: Released for internal use only. |
static void |
setClassLoader(java.lang.ClassLoader loader)
Deprecated. applications should not use this method. |
static void |
setDataSourceClass(java.lang.Object dataSourceClass)
NOTE: Released for internal use only. |
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 |
clone, equals, finalize, 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)
Method without functionality.
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()
NoLogonDataAvailableException - if user mapping has not been initialized yetpublic 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()
Get access to UMParameters interface
IUMParameterspublic static IRoleFactory getRoleFactory()
public static IUserAccountFactory getUserAccountFactory()
public static IPrincipalFactory getPrincipalFactory()
public static IUserFactory getUserFactory()
public static IServiceUserFactory getServiceUserFactory()
Returns an implementation of IServiceUserFactory. This method should be called to get the service user factory for all service user related operations.
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)
Initialize the UMFactory manually. For standalone issues.
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)
initialize the UMFactory manually. Called from Portal UserMangementService or WebAS 6.30 (or any other application that does all the initialization by itself (e.g. read properties and configuration files)
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 com.sap.security.api.util.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()
Gets the database vendor
public TicketVerifier getTicketVerifier()
TicketVerifierpublic static void addSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
public static java.util.ArrayList getSystemLandscapeWrappers()
ISystemLandscapeWrapper
implementations that are currently registered.public static void removeSystemLandscapeWrapper(ISystemLandscapeWrapper slw)
public static IAnonymousUserFactory getAnonymousUserFactory()
public static ISecurityPolicy getSecurityPolicy()
ISecurityPolicypublic static void setDataSourceClass(java.lang.Object dataSourceClass)
setDataSourceClass sets a dataSourceClass which is used for PCD role handling
public static java.lang.Object getDataSourceClass()
getDataSourceClass gets a dataSourceClass which is used for PCD role handling
public static void setLoggerClass(java.lang.Object loggerClass)
If Portal Logger Wrapper is used, UMFactory provides access to core classes
public static java.lang.Object getLoggerClass()
If Portal Logger Wrapper is used, UMFactory provides access to logger object
public static boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||