spki.interfaces
Interface SPKIObject

All Known Subinterfaces:
Key, LocObj, Principal, SeqDefName, SeqDefValue, SeqEntry, SubjACL, SubjAttributeObj, SubjCapabilityObj, SubjNameObj, SubjObj, SubjRoleObj, SubjTransferObj
All Known Implementing Classes:
BaseObj

public interface SPKIObject

SPKI SPKIObject interface.

Version:
$Id: SPKIObject.java,v 1.3 2001/11/07 23:39:14 tep Exp $
Author:
Tep Narula <tep@win.trlabs.ca>, adapted from SPKI.SPKIObject by Per Harald Myrvang <perm@pasta.cs.uit.no>

Method Summary
 boolean isLocked()
          See if this object is locked, i.e immutable.
 void lock()
          Make this object immutable.
 SExpression toSExpression()
          Build an SExpression representing this object.
 

Method Detail

toSExpression

public SExpression toSExpression()
                          throws SPKIException
Build an SExpression representing this object.
Returns:
SExpression object representing this object, or null.
Throws:
SPKIException - if something went wrong during conversion.

lock

public void lock()
Make this object immutable. This is supposed to be non-reversible, so don't implement something stupid like unLock() ok?. Multiple locks are allowed, though.
See Also:
isLocked()

isLocked

public boolean isLocked()
See if this object is locked, i.e immutable.
Returns:
true if this object is locked, or false otherwise.
See Also:
lock()