|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bees.core.CapabilityEnvelope
Container class used to transmit capabilities between domains. Passing an envelope to another Domain will introduce it to that domain, if it did not previously have the Capability. If the domain already had the Capability then any extra permissions in the envelope will be granted to the Capability in the domain.
Capability
,
CapabilityReference
,
PermissionSet
Constructor Summary | |
CapabilityEnvelope(Capability cap)
Construct a CapabilityEnvelope enclosing the given capability. |
|
CapabilityEnvelope(CapabilityEnvelope ce)
Construct a copy of the given CapabilityEnvelope with an anonymous name. |
|
CapabilityEnvelope(java.lang.String name,
Capability cap)
Construct a CapabilityEnvelope enclosing the given capability and mapped to the given name. |
|
CapabilityEnvelope(java.lang.String name,
CapabilityEnvelope ce)
Construct a copy of the given CapabilityEnvelope with a new name. |
Method Summary | |
CapabilityEnvelope |
boundPermissions(PermissionSet ps)
Bound the enclosed capabilities to the given set. |
java.lang.Object |
clone()
|
static CapabilityEnvelope |
find(CapabilityEnvelope[] ce,
java.lang.String name)
Find a CapabilityEnvelope with the given name in the given array. |
java.lang.String |
getName()
|
KernelObjectCoroutine |
lookup(StateResponder sr)
Send a lookup event for the enclosed capability. |
KernelObjectCoroutine |
lookup(Unsealer unsealer,
StateResponder sr)
|
CapabilityEnvelope |
revokePermissions(PermissionSet ps)
Revoke some permissions from the enclosed capability. |
CapabilityEnvelope |
seal(Sealer sealer)
|
java.lang.String |
toString()
|
Capability |
unseal()
Unseal the envelope to get the enclosed capability. |
Capability |
unseal(KernelObjectCoroutine koc)
Unseal the capability returned by a lookup reply. |
Capability |
unseal(Unsealer unsealer)
|
static void |
updateHash(KernelObjectStore kos,
CapabilityEnvelope[] ce,
bees.util.MD5 digest)
|
void |
updateHash(KernelObjectStore kos,
bees.util.MD5 digest)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CapabilityEnvelope(java.lang.String name, Capability cap)
name
- The domain local name this capability should be registered
under or null.cap
- The capability to enclose.public CapabilityEnvelope(Capability cap)
cap
- The capability to enclose.public CapabilityEnvelope(java.lang.String name, CapabilityEnvelope ce)
name
- The new envelope name.ce
- The CapabilityEnvelope to copy.public CapabilityEnvelope(CapabilityEnvelope ce)
ce
- The CapabilityEnvelope to copy.Method Detail |
public static CapabilityEnvelope find(CapabilityEnvelope[] ce, java.lang.String name)
ce
- The array of envelopes to search.name
- The envelope name to retrieve.public static void updateHash(KernelObjectStore kos, CapabilityEnvelope[] ce, bees.util.MD5 digest)
public java.lang.String getName()
public CapabilityEnvelope revokePermissions(PermissionSet ps)
ps
- The set of permissions to revoke.public CapabilityEnvelope boundPermissions(PermissionSet ps)
ps
- The set of permissions to bound the permissions by.public CapabilityEnvelope seal(Sealer sealer)
public KernelObjectCoroutine lookup(Unsealer unsealer, StateResponder sr)
public KernelObjectCoroutine lookup(StateResponder sr)
sr
- The object to use when handling the coroutine state
transitions.public Capability unseal(KernelObjectCoroutine koc) throws MissingCapabilityException
koc
- The coroutine that performed the lookup.MissingCapabilityException
- if the referenced capability has
been deleted.public Capability unseal(Unsealer unsealer) throws MissingCapabilityException, java.lang.InstantiationException
public Capability unseal() throws MissingCapabilityException, java.lang.InstantiationException
java.lang.InstantiationException
- if there was a problem creating the
capability.MissingCapabilityException
- if the referenced capability has
been deleted.public void updateHash(KernelObjectStore kos, bees.util.MD5 digest)
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |