fabric.lang.security
Class Principal._Impl
java.lang.Object
fabric.lang.Object._Impl
fabric.lang.security.Principal._Impl
- All Implemented Interfaces:
- Object, Principal, java.lang.Cloneable
- Direct Known Subclasses:
- DelegatingPrincipal._Impl
- Enclosing interface:
- Principal
public abstract static class Principal._Impl
- extends Object._Impl
- implements Principal
Fields inherited from class fabric.lang.Object._Impl |
$class, $history, $isOwned, $label, $numWaiting, $reader, $readMapEntry, $ref, $updateMapVersion, $version, $writeLockHolder, $writer |
Constructor Summary |
Principal._Impl(Store store,
Label label)
|
Principal._Impl(Store store,
long onum,
int version,
long expiry,
long label,
java.io.ObjectInput in,
java.util.Iterator<RefTypeEnum> refTypes,
java.util.Iterator<java.lang.Long> intraStoreRefs)
|
Method Summary |
protected Object._Proxy |
$makeProxy()
Subclasses should override this method. |
void |
$serialize(java.io.ObjectOutput out,
java.util.List<RefTypeEnum> refTypes,
java.util.List<java.lang.Long> intraStoreRefs,
java.util.List<Pair<java.lang.String,java.lang.Long>> interStoreRefs)
Serializes the non-transient fields of this object. |
abstract boolean |
delegatesTo(Principal p)
|
abstract boolean |
equals(Principal p)
|
abstract ActsForProof |
findProofDownto(Store store,
Principal q,
java.lang.Object searchState)
|
abstract ActsForProof |
findProofUpto(Store store,
Principal p,
java.lang.Object searchState)
|
PrivateKeyObject |
getPrivateKeyObject()
|
java.security.PublicKey |
getPublicKey()
|
abstract boolean |
isAuthorized(java.lang.Object authPrf,
Closure closure,
Label lb,
boolean executeNow)
|
abstract java.lang.String |
name()
|
Methods inherited from class fabric.lang.Object._Impl |
_npe, $copyAppStateFrom, $copyStateFrom, $forceRenumber, $getClass, $getOnum, $getProxy, $getStore, $getVersion, $readRef, $unwrap, $writeInline, $writeRef, clone, createStatistics, equals, equals, fetch, get$label, hashCode, idEquals, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Principal._Impl
public Principal._Impl(Store store,
Label label)
Principal._Impl
public Principal._Impl(Store store,
long onum,
int version,
long expiry,
long label,
java.io.ObjectInput in,
java.util.Iterator<RefTypeEnum> refTypes,
java.util.Iterator<java.lang.Long> intraStoreRefs)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
name
public abstract java.lang.String name()
- Specified by:
name
in interface Principal
delegatesTo
public abstract boolean delegatesTo(Principal p)
- Specified by:
delegatesTo
in interface Principal
equals
public abstract boolean equals(Principal p)
- Specified by:
equals
in interface Principal
isAuthorized
public abstract boolean isAuthorized(java.lang.Object authPrf,
Closure closure,
Label lb,
boolean executeNow)
- Specified by:
isAuthorized
in interface Principal
findProofUpto
public abstract ActsForProof findProofUpto(Store store,
Principal p,
java.lang.Object searchState)
- Specified by:
findProofUpto
in interface Principal
findProofDownto
public abstract ActsForProof findProofDownto(Store store,
Principal q,
java.lang.Object searchState)
- Specified by:
findProofDownto
in interface Principal
$makeProxy
protected Object._Proxy $makeProxy()
- Description copied from class:
Object._Impl
- Subclasses should override this method.
- Overrides:
$makeProxy
in class Object._Impl
$serialize
public void $serialize(java.io.ObjectOutput out,
java.util.List<RefTypeEnum> refTypes,
java.util.List<java.lang.Long> intraStoreRefs,
java.util.List<Pair<java.lang.String,java.lang.Long>> interStoreRefs)
throws java.io.IOException
- Description copied from class:
Object._Impl
- Serializes the non-transient fields of this object. Subclasses should
call the super method first so that inherited fields are written before
fields declared in this subclass. The order in which fields are written
must be fixed and the same as the order used by the deserialization
constructor.
- Overrides:
$serialize
in class Object._Impl
- Parameters:
out
- An output stream for writing serialized primitive values and
inlined objects.refTypes
- A list to which RefTypeEnum
s will be written to
indicate the type of reference being serialized (e.g., null,
inlined, intraStore, interStore).intraStoreRefs
- A list to which onums denoting intra-store references will be
written.interStoreRefs
- A list to which global object names (hostname/onum pairs),
denoting inter-store references, will be written.
- Throws:
java.io.IOException
getPublicKey
public final java.security.PublicKey getPublicKey()
- Specified by:
getPublicKey
in interface Principal
getPrivateKeyObject
public final PrivateKeyObject getPrivateKeyObject()
- Specified by:
getPrivateKeyObject
in interface Principal