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) |
authorizepublic 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)
AuthorizationEngineSignedContent object. The engine determines if the
signed content authorization should be granted.doAuthorize in class AuthorizationEnginecontext - the context associated with the signed contentnull
may be returned; in this case no authorization event will be fired.public int getStatus()
AuthorizationEnginegetStatus in class AuthorizationEngineAuthorizationStatus.OK or AuthorizationStatus.ERRORAuthorizationStatus.OK,
AuthorizationStatus.ERRORpublic void processInstalledBundles()
public void setLoadPolicy(int policy)
public int getLoadPolicy()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.