|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--spki.BaseObj
|
+--spki.Empowerment
SPKI Empowerment class.
Format definitions:
<redelegate>:: "delegatable" ;
<transfer>:: "transferable" ;
<propagate>:: <redelegate> | <transfer> ;
<grant>:: "(" "grant" <propagate>? ")" ;
<delegate>:: "(" "delegate" <redelegate>? ")" ;
<emp-value>:: <grant> | <delegate> ;
<empower>:: "(" "empower" <emp-value> ")" ;
| Field Summary | |
private static String |
__ME
This class's full name. |
static int |
DELEGATE
Delegation (2). |
static int |
DELEGATEABLE
Redelegation allowed (1). |
static int |
GRANT
Granting (1). |
private static int |
MAX_EMPOWERMENT_VALUE
|
private static int |
MAX_PROPAGATION_VALUE
|
private static int |
MIN_EMPOWERMENT_VALUE
|
private static int |
MIN_PROPAGATION_VALUE
|
static int |
NO_PROPAGATION
No propagation allowed (0). |
static int |
NOT_EMPOWERED
Initial empowerment type (0). |
private int |
propagate
the propgation-control type. |
static String[] |
PROPAGATE_SEXP_NAMES
The propagate-control S-Expression values, used by toSExpression() and other methods. |
static String |
SEXP_NAME
This class S-Expression type name, used by toSExpression() and other methods. |
static int |
TRANSFER
Transfer (3). |
static int |
TRANSFERABLE
Transfer allowed (2). |
private int |
type
the empowerment type. |
static String[] |
TYPE_SEXP_NAMES
The empowerment-type S-Expression values, used by toSExpression() and other methods. |
| Fields inherited from class spki.BaseObj |
__ME,
cache_sexp,
cached_sexp,
DEFAULT_HASH_ALG,
locked,
SEXP_NAME |
| Constructor Summary | |
protected |
Empowerment()
Don't use me! |
|
Empowerment(int type,
int propagate)
Create an immutable Empowerment object from the given empowerment type and, optionally, the propagation-control type. |
|
Empowerment(SExpression sexp)
Create an immutable Empowerment object from an S-Expression. |
| Method Summary | |
int |
getEmpowermentType()
Get the empowerment type. |
int |
getPropagationType()
Get the propgation-control type. |
SExpression |
toSExpression()
Build an SExpression representing this object. |
| Methods inherited from class spki.BaseObj |
disableSExpressionCaching,
enableSExpressionCaching,
extractHashAlgId,
getCachedSExpression,
isLocked,
isSListOfType,
lock,
providerToSPKI,
setCachedSExpression,
spkiToProvider,
toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final String __ME
public static final String SEXP_NAME
toSExpression()public static final String[] TYPE_SEXP_NAMES
toSExpression()public static final int NOT_EMPOWERED
public static final int GRANT
public static final int DELEGATE
public static final int TRANSFER
Tuple.EIntersect(Empowerment,Empowerment)private static final int MIN_EMPOWERMENT_VALUE
GRANTprivate static final int MAX_EMPOWERMENT_VALUE
TRANSFERprivate int type
GRANT,
DELEGATEpublic static final String[] PROPAGATE_SEXP_NAMES
toSExpression()public static final int NO_PROPAGATION
public static final int DELEGATEABLE
public static final int TRANSFERABLE
private static final int MIN_PROPAGATION_VALUE
NO_PROPAGATIONprivate static final int MAX_PROPAGATION_VALUE
TRANSFERABLEprivate int propagate
NO_PROPAGATION,
DELEGATEABLE,
TRANSFERABLE| Constructor Detail |
protected Empowerment()
Empowerment(SExpression),
Empowerment(int,int)
public Empowerment(SExpression sexp)
throws ParseException,
SPKIException
BaseObj.BaseObj(SExpression)
public Empowerment(int type,
int propagate)
throws SPKIException
type - the empowerment type value, must be within the range of
MIN_EMPOWERMENT_VALUE and MAX_EMPOWERMENT_VALUE.propgate - the propagation-control type value, must be within the
range of MIN_PROPAGATION_VALUE and MAX_PROPAGATION_VALUE.GRANT,
DELEGATE,
NO_PROPAGATION,
DELEGATEABLE,
TRANSFERABLE| Method Detail |
public SExpression toSExpression()
throws SPKIException
public int getEmpowermentType()
GRANT,
DELEGATEpublic int getPropagationType()
NO_PROPAGATION,
DELEGATEABLE,
TRANSFERABLE
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||