org.eclipse.osgi.internal.service.security
Class DefaultAuthorizationEngine

java.lang.Object
  extended by org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine
      extended by org.eclipse.osgi.internal.service.security.DefaultAuthorizationEngine

public class DefaultAuthorizationEngine
extends AuthorizationEngine


Field Summary
static int ENFORCE_NONE
           
static int ENFORCE_SIGNED
           
static int ENFORCE_TRUSTED
           
static int ENFORCE_VALIDITY
           
 
Constructor Summary
DefaultAuthorizationEngine(BundleContext context, State systemState)
           
 
Method Summary
protected  AuthorizationEvent doAuthorize(SignedContent content, Object context)
          Authorizes a SignedContent object.
 int getLoadPolicy()
           
 int getStatus()
          Return the current status of the Authorization system.
 void processInstalledBundles()
           
 void setLoadPolicy(int policy)
           
 
Methods inherited from class org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine
authorize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultAuthorizationEngine

public DefaultAuthorizationEngine(BundleContext context,
                                  State systemState)
Method Detail

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.