org.eclipse.osgi.internal.service.security
Class DefaultAuthorizationEngine
java.lang.Object
org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine
org.eclipse.osgi.internal.service.security.DefaultAuthorizationEngine
public class DefaultAuthorizationEngine
- extends AuthorizationEngine
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENFORCE_NONE
public static final int ENFORCE_NONE
- See Also:
- Constant Field Values
ENFORCE_SIGNED
public static final int ENFORCE_SIGNED
- See Also:
- Constant Field Values
ENFORCE_TRUSTED
public static final int ENFORCE_TRUSTED
- See Also:
- Constant Field Values
ENFORCE_VALIDITY
public static final int ENFORCE_VALIDITY
- See Also:
- Constant Field Values
DefaultAuthorizationEngine
public DefaultAuthorizationEngine(BundleContext context,
State systemState)
doAuthorize
protected AuthorizationEvent doAuthorize(SignedContent content,
Object context)
- Description copied from class:
AuthorizationEngine
- Authorizes a
SignedContent object. The engine determines if the
signed content authorization should be granted.
- Specified by:
doAuthorize in class AuthorizationEngine
context - the context associated with the signed content
- Returns:
- an authorization event which will be fired. A value of
null
may be returned; in this case no authorization event will be fired.
getStatus
public int getStatus()
- Description copied from class:
AuthorizationEngine
- Return the current status of the Authorization system.
- Specified by:
getStatus in class AuthorizationEngine
- Returns:
- A value of
AuthorizationStatus.OK or AuthorizationStatus.ERROR - See Also:
AuthorizationStatus.OK,
AuthorizationStatus.ERROR
processInstalledBundles
public void processInstalledBundles()
setLoadPolicy
public void setLoadPolicy(int policy)
getLoadPolicy
public int getLoadPolicy()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.