public class DefaultAuthorizationEngine extends AuthorizationEngine
Modifier and Type | Field and Description |
---|---|
static int |
ENFORCE_NONE |
static int |
ENFORCE_SIGNED |
static int |
ENFORCE_TRUSTED |
static int |
ENFORCE_VALIDITY |
Constructor and Description |
---|
DefaultAuthorizationEngine(BundleContext context,
State systemState) |
Modifier and Type | Method and Description |
---|---|
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) |
authorize
public static final int ENFORCE_NONE
public static final int ENFORCE_SIGNED
public static final int ENFORCE_TRUSTED
public static final int ENFORCE_VALIDITY
public DefaultAuthorizationEngine(BundleContext context, State systemState)
protected AuthorizationEvent doAuthorize(SignedContent content, Object context)
AuthorizationEngine
SignedContent
object. The engine determines if the
signed content authorization should be granted.doAuthorize
in class AuthorizationEngine
context
- the context associated with the signed contentnull
may be returned; in this case no authorization event will be fired.public int getStatus()
AuthorizationEngine
getStatus
in class AuthorizationEngine
AuthorizationStatus.OK
or AuthorizationStatus.ERROR
AuthorizationStatus.OK
,
AuthorizationStatus.ERROR
public void processInstalledBundles()
public void setLoadPolicy(int policy)
public int getLoadPolicy()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.