Class SecurityActivator
- java.lang.Object
-
- org.apache.felix.framework.SecurityActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public final class SecurityActivator extends java.lang.Object implements org.osgi.framework.BundleActivatorThis Felix specific activator installs a security provider with the Felix framework. The security settings can be changed via the
PermissionAdminand/or theConditionalPermissionAdminservices that may be published by this class.Permission informations as well as caching data will be stored in several files in a directory called security obtained by a call to {@link BundleContext#getDataFile(String))}.
The following properties are recognized:
SecurityConstants.ENABLE_PERMISSIONADMIN_PROP- Whether or not ( true|false) to publish aConditionalPermissionAdminservice. The default isSecurityConstants.ENABLE_PERMISSIONADMIN_VALUE.SecurityConstants.ENABLE_CONDPERMADMIN_PROP- Whether or not ( true|false) to publish aConditionalPermissionAdminservice. The default isSecurityConstants.ENABLE_CONDPERMADMIN_VALUE.SecurityConstants.KEYSTORE_FILE_PROP- The keystore URL(s) to use as trusted CA stores. The urls must be separated by a guard (i.e., |). The default isSecurityConstants.KEYSTORE_FILE_VALUE.SecurityConstants.KEYSTORE_PASS_PROP- The keystore password(s) to use for the given keystores. The passwords must be separated by a guard (i.e., |).The default isSecurityConstants.KEYSTORE_PASS_VALUE.SecurityConstants.KEYSTORE_TYPE_PROP- The keystore type(s) to use for the given keystores. The types must be separated by a guard (i.e., |).The default isSecurityConstants.KEYSTORE_TYPE_VALUE.SecurityConstants.CRL_FILE_PROP- The CRL URL(s) to use for revoked certificates. The urls must be separated by a guard (i.e., |). The default isSecurityConstants.CRL_FILE_VALUE.
-
-
Constructor Summary
Constructors Constructor Description SecurityActivator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
-