|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.mit.csail.aeolus.api.AeolusTag
public final class AeolusTag
This class provides AeolusTags.
| Constructor Summary | |
|---|---|
AeolusTag()
Create a new top-level tag. |
|
AeolusTag(AeolusTag t)
Create a sub-tag of tag t. |
|
| Method Summary | |
|---|---|
AeolusTag |
clone()
Returns a new AeolusTag which will be equal to this. |
void |
delegate(PID p1,
PID p2)
Assuming that the current thread acts for principal p1, and p2 isn't the public pid, and p1 is a node in the delegation graph of this, the delegate method gives authority for this to grantee p2. |
boolean |
equals(AeolusTag t)
Returns true if this is the same as tag t, otherwise false. |
boolean |
hasAuthority()
Returns true if current thread has authority for the tag, otherwise false. |
boolean |
hasAuthority(PID p)
Returns true if principal p has authority for the tag, otherwise false. |
boolean |
isSubTag(AeolusTag t)
Returns true if t is a subTag of this, otherwise false. |
boolean |
isSuperTag(AeolusTag t)
Returns true if t is a superTag of this, otherwise false. |
void |
revoke(PID p1,
PID p2)
Revokes authority for this tag from grantor principal from p1 to grantee principal to p2. |
java.lang.String |
toString()
Returns a string representation of this. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AeolusTag()
throws AeolusException,
InfoFlowControlException,
AuthorityException
AuthorityException - - if caller principal not authorized to create a new tag
(i.e. if the caller is the public principal)
AeolusException - - if failure in communicating with the authority server or
an unexpected platform failure occurred
InfoFlowControlException - - if caller's secrecy label is not null
public AeolusTag(AeolusTag t)
throws AeolusException,
InfoFlowControlException,
AuthorityException
AuthorityException - - if caller principal not authorized to create a new sub-tag
(i.e. if the caller is the public principal or t is not a top-level tag.)
AeolusException - - if caller is inside a shared state object
InfoFlowControlException - - if caller's secrecy label is not null| Method Detail |
|---|
public AeolusTag clone()
clone in class java.lang.Object
public void delegate(PID p1,
PID p2)
throws AeolusException,
InfoFlowControlException,
AeolusException
p1 - principal that is authoritative for tagp2 - principal that will be authoritative for tag
AuthorityException - - if thread does not act for p1 or p1 does not have authority
for this or p2 is the public pid
InfoFlowControlException - - if caller's secrecy label isn't null
AeolusException - if failure in communicating with the authority server or
an unexpected platform failure occurred or p1 isn't a node in the delegation graph for
this or adding the link would cause a cycle in the graphpublic boolean equals(AeolusTag t)
t - - an AeolusTagpublic boolean hasAuthority()
public boolean hasAuthority(PID p)
p - principal with respect to which authority checking is requestedpublic boolean isSubTag(AeolusTag t)
t - possible child of thispublic boolean isSuperTag(AeolusTag t)
t - possible parent of this
public void revoke(PID p1,
PID p2)
throws AeolusException,
AuthorityException
p1 - principal that is authoritative for tag and granted authority to p2 for tagp2 - principal to remove from being authoritative for tag
AuthorityException - - if caller principal does not act for p1 or if p1 isn't a node
in the delegation graph of this
InfoFlowControlException - - if caller's secrecy label is not null
an unexpected platform failure occurred
AeolusException - - if failure in communicating with the authority server orpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||