com.sap.aii.security.lib

Class PermissionMode

java.lang.Object
  extended by com.sap.aii.security.lib.PermissionMode
All Implemented Interfaces:
Serializable

public class PermissionMode
extends Object
implements Serializable

Defines the permission mode under which the KeyStore run's. To perform actions with the KeyStore you need code based - and user based permissions. This class defines the running mode under which you access the MeyStoreManager.

Version:
$Id: //tc/xpi.af/710_SP_REL/src/_security_library/plib/api/com/sap/aii/security/lib/PermissionMode.java#1 $
See Also:
Serialized Form

Field Summary
static PermissionMode DO_PRIVILEGED
          Run's the KeyStoreManager under code based permission for all performing actions.
static PermissionMode KEYSTORE
          Run's the KeyStoreManager with NO additional permission's.
static PermissionMode SYSTEM_LEVEL
          Run's the KeyStoreManager under user based permission.
 
Constructor Summary
protected PermissionMode(String value)
          Default constructor.
 
Method Summary
 String toString()
          To-String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KEYSTORE

public static final PermissionMode KEYSTORE
Run's the KeyStoreManager with NO additional permission's. This means:
The calling code must have code based permissions for the performing actions and the user MUST be assigned to the KeystoreAdministrator role (-> user based permission).


DO_PRIVILEGED

public static final PermissionMode DO_PRIVILEGED
Run's the KeyStoreManager under code based permission for all performing actions.


SYSTEM_LEVEL

public static final PermissionMode SYSTEM_LEVEL
Run's the KeyStoreManager under user based permission. The following java.lang.RuntimePermission is checked: com.sap.aii.security.lib.Constants.SECURITY_RUNTIME_PERMISSION = XiSecurityRuntimePermission.
This permission has to be granted to the code permissions. This can be configured via the Visual Admin under the Security Provider service Tab Protection Domains -> Granted Permissions java.lang.RuntimePermission.

Constructor Detail

PermissionMode

protected PermissionMode(String value)
Default constructor.

Method Detail

toString

public String toString()
To-String.

Overrides:
toString in class Object


Copyright 2007 SAP AG Complete Copyright Notice