|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine
public abstract class AuthorizationEngine
An authorization engine is used to grant authorization to SignedContent.
For example, an engine could determine if SignedContent is authorized
to enable code from a signed bundle.
| Constructor Summary | |
|---|---|
AuthorizationEngine(BundleContext context)
|
|
| Method Summary | |
|---|---|
void |
authorize(SignedContent content,
java.lang.Object context)
Authorizes a SignedContent object. |
protected abstract AuthorizationEvent |
doAuthorize(SignedContent content,
java.lang.Object context)
Authorizes a SignedContent object. |
abstract int |
getStatus()
Return the current status of the Authorization system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthorizationEngine(BundleContext context)
| Method Detail |
|---|
public final void authorize(SignedContent content,
java.lang.Object context)
SignedContent object. The engine determines if the
signed content authorization should be granted. The context is the entity
associated with the signed content. For example, signed content
for a bundle will have a Bundle object as the context.
content - the signed content. The value may be null.context - the context associated with the signed content. The value may be null.
protected abstract AuthorizationEvent doAuthorize(SignedContent content,
java.lang.Object context)
SignedContent object. The engine determines if the
signed content authorization should be granted.
content - context - the context associated with the signed content
null
may be returned; in this case no authorization event will be fired.public abstract int getStatus()
AuthorizationStatus.OK or AuthorizationStatus.ERRORAuthorizationStatus.OK,
AuthorizationStatus.ERROR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||