|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.mit.csail.aeolus.api.PID
public final class PID
Objects of this class represent principals.
Constructor Summary | |
---|---|
PID()
Creates a new principal. |
Method Summary | |
---|---|
void |
actFor(PID p)
Adds an act-for link from this to principal p. |
PID |
clone()
Returns a new PID which will be equal to this. |
boolean |
doesActFor(PID p)
Returns true if and only if p acts for this |
boolean |
equals(PID p)
Returns true if the PID p equals this, otherwise returns false |
static PID |
getPublicPID()
Returns the public PID |
void |
revoke(PID p)
Removes the act-for link from this to principal p. |
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 PID() throws AuthorityException, InfoFlowControlException, AeolusException
AuthorityException
- - if caller principal not authorized to create a new principal
(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 nullMethod Detail |
---|
public void actFor(PID p) throws InfoFlowControlException, AuthorityException, AeolusException
AuthorityException
- - if caller principal does not act for this
or if p is the public pid
AeolusException
- - if failure in communicating with the authority server or
an unexpected platform failure occurred or would create a cycle in the principal hierarchy
InfoFlowControlException
- - if caller's secrecy label is not nullpublic PID clone()
clone
in class java.lang.Object
public boolean doesActFor(PID p)
public boolean equals(PID p)
public static PID getPublicPID()
public void revoke(PID p) throws AuthorityException, AeolusException, InfoFlowControlException
AuthorityException
- - if caller principal doesn't act-for this or
there is no link from this to p
AeolusException
- - if failure in communicating with the authority server or
an unexpected platform failure occurred
InfoFlowControlException
- - if caller's secrecy label is not nullpublic 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 |