|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--spki.BaseObj
|
+--spki.Validity
SPKI Validity class.
Formal definitions:
<valid-basic>:: <not-before>? <maybe-after>? <not-after>? ;
<recency>:: <off-line> | <on-line> ;
<valid>:: "(" "valid" <valid-basic>? <recency>? ")" ;
where an empty validity, i.e. "(valid)", means "always valid".
ValidOffline,
ValidOnline,
ValidTransfer| Field Summary | |
private static String |
__ME
This class's full name. |
private boolean |
always_valid
Is this an always-valid object? |
private Date |
maybe_after
The maybe-after date value. |
static String |
MAYBEAFTER_SEXP_NAME
The maybe-after S-Expression type name, used by toSExpression() and other methods. |
private Date |
not_after
The not-after date value. |
private Date |
not_before
The not-before date value. |
static String |
NOTAFTER_SEXP_NAME
The not-after S-Expression type name, used by toSExpression() and other methods. |
static String |
NOTBEFORE_SEXP_NAME
The not-before S-Expression type name, used by toSExpression() and other methods. |
private ValidOffline |
offline
The offline validity condition object. |
private ValidOnline |
online
The online validity condition object. |
static String |
SEXP_NAME
This class S-Expression type name, 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 | |
Validity()
Create an always-valid Validity object. |
|
Validity(Date not_before,
Date maybe_after,
Date not_after,
ValidOffline offline,
ValidOnline online)
Create an immutable Validity object from given not-before date, and/or maybe-after date, and/or not-after date, and/or offline validity condition or online validity condition. |
|
Validity(SExpression sexp)
Create an immutable Validity object from an S-Expression. |
|
| Method Summary | |
Date |
getMaybeAfter()
Get the maybe-after field, if available. |
Date |
getNotAfter()
Get the not-after field, if available. |
Date |
getNotBefore()
Get the not-before field, if available. |
ValidOffline |
getValidOffline()
Get the valid-offline field, if available. |
ValidOnline |
getValidOnline()
Get the valid-online field, if available. |
boolean |
isAlwaysValid()
Is this an always-valid object? |
SExpression |
toSExpression()
Build an SExpression representing this object. |
private boolean |
verifyDates()
Verify the relation among the not_before, maybe_after, and not_after date values. |
| 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 NOTBEFORE_SEXP_NAME
toSExpression()private Date not_before
public static final String MAYBEAFTER_SEXP_NAME
toSExpression()private Date maybe_after
public static final String NOTAFTER_SEXP_NAME
toSExpression()private Date not_after
private ValidOffline offline
private ValidOnline online
private boolean always_valid
| Constructor Detail |
public Validity()
Validity(SExpression),
Validity(Date,Date,Date,ValidOffline,ValidOnline)
public Validity(SExpression sexp)
throws ParseException,
SPKIException
BaseObj.BaseObj(SExpression)
public Validity(Date not_before,
Date maybe_after,
Date not_after,
ValidOffline offline,
ValidOnline online)
throws SPKIException
not_before - the not-before date, maybe null.maybe_after - the maybe-after date, maybe null.not_after - the not-after date, maybe null.offline - the offline validity condition, maybe null.online - the online validity condition, maybe null.Validity()| Method Detail |
public SExpression toSExpression()
throws SPKIException
public Date getNotBefore()
public Date getMaybeAfter()
public Date getNotAfter()
public ValidOffline getValidOffline()
public ValidOnline getValidOnline()
public boolean isAlwaysValid()
private boolean verifyDates()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||