|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--spki.BaseObj
|
+--spki.CertBody
spki CertBody class.
Formal definitions:
<version>:: "(" "version" <byte-string> ")" ;
<cert-display>:: "(" "display" <byte-string> ")" ;
<issuer-loc>:: "(" "issuer-info" <loc-obj>+ ")" ;
<subject-loc>:: "(" "subject-info" <loc-obj>+ ")" ;
<created>:: "(" "created" <date> ")" ;
<comment>:: "(" "comment" <byte-string> ")" ;
<auth-cert>:: <role-cert> | <capability-cert> ;
<cert-body>:: <auth-cert> | <name-cert> | <transfer-cert> | <attr-cert> ;
RoleCert,
CapabilityCert,
NameCert,
TransferCert,
AttributeCert,
LocObj,
Date,
Certificate| Field Summary | |
private static String |
__ME
This class's full name. |
private Sexp |
cert_display
The optional display field, maybe null. |
static String |
CERT_DISPLAY_SEXP_NAME
The display field S-Expression type name. |
private Sexp |
comment
The optional comment field, maybe null. |
static String |
COMMENT_SEXP_NAME
The comment field S-Expression type name. |
private Date |
created
The optional creation-date field, maybe null. |
static String |
CREATED_SEXP_NAME
The creation-date field S-Expression type name. |
private Escrow |
escrow
The optional escrow field, maybe null. |
private Issuer |
issuer
The issuer field. |
private LocObj[] |
issuer_loc
The optional isssuer-info field, maybe null. |
static String |
ISSUER_LOC_SEXP_NAME
The issuer-info field S-Expression type name. |
static String |
SEXP_NAME
This class S-Expression type name, used by toSExpression() and other methods. |
private LocObj[] |
subject_loc
The optional subject-info field, maybe null. |
static String |
SUBJECT_LOC_SEXP_NAME
The subject-info field S-Expression type name. |
private SList |
version
The version field. |
static String |
VERSION
The actual version string for this implementation (1.0a). |
static String |
VERSION_SEXP_NAME
The version field S-Expression type name. |
| Fields inherited from class spki.BaseObj |
__ME,
cache_sexp,
cached_sexp,
DEFAULT_HASH_ALG,
locked,
SEXP_NAME |
| Constructor Summary | |
protected |
CertBody()
Don't use me. |
protected |
CertBody(Sexp cert_display,
Issuer issuer,
LocObj[] issuer_loc,
LocObj[] subject_loc,
Escrow escrow,
Sexp comment)
Create a partial CertBody object from given fields. |
protected |
CertBody(SExpression sexp)
Create a partial CertBody object from given S-Expression. |
| Method Summary | |
(package private) SExpression |
buildCertDisplaySExpression()
Convert the display field into S-Expression, for use by subclass' toSExpression() method. |
(package private) SExpression |
buildCommentSExpression()
Convert the comment field into S-Expression, for use by subclass' toSExpression() method. |
(package private) SExpression |
buildCreatedSExpression()
Convert the created field into S-Expression, for use by subclass' toSExpression() method. |
(package private) SExpression |
buildIssuerLocSExpression()
Convert the issuer-info field into S-Expression, for use by subclass' toSExpression() method. |
(package private) SExpression |
buildSubjectLocSExpression()
Convert the subject-info field into S-Expression, for use by subclass' toSExpression() method. |
(package private) SExpression |
buildVersionSExpression()
Convert the version field into S-Expression, for use by subclass' toSExpression() method. |
Sexp |
getCertDisplay()
Get the display field, if available. |
Sexp |
getComment()
Get the comment field, if available. |
Date |
getCreated()
Get the created field, if available. |
Escrow |
getEscrow()
Get the escrow field, if available. |
static CertBody |
getInstance(SExpression sexp)
Get an instance of a certificate body from given S-Expression. |
Issuer |
getIssuer()
Get the issuer field. |
LocObj |
getIssuerLoc(int index)
Get the element at the specified index of the issuer-info field, if available. |
int |
getIssuerLocLength()
Get the number of elements in the issuer-info field. |
abstract Subject |
getSubject()
Get the subject field. |
LocObj |
getSubjectLoc(int index)
Get the element at the specified index of the subject-info field, if available. |
int |
getSubjectLocLength()
Get the number of elements in the subject-info field. |
abstract Validity |
getValidity()
Get the validity field. |
static boolean |
isCertBody(SExpression sexp)
Check an SExpression to see if it could contain a cert-body. |
void |
setCreated()
Set the created time to the current time, to be called just before signing the certificate. |
| Methods inherited from class spki.BaseObj |
disableSExpressionCaching,
enableSExpressionCaching,
extractHashAlgId,
getCachedSExpression,
isLocked,
isSListOfType,
lock,
providerToSPKI,
setCachedSExpression,
spkiToProvider,
toSExpression,
toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static final String __ME
public static final String SEXP_NAME
BaseObj.toSExpression()public static final String VERSION_SEXP_NAME
public static final String VERSION
private SList version
public static final String CERT_DISPLAY_SEXP_NAME
private Sexp cert_display
public static final String ISSUER_LOC_SEXP_NAME
private LocObj[] issuer_loc
private Issuer issuer
public static final String SUBJECT_LOC_SEXP_NAME
private LocObj[] subject_loc
private Escrow escrow
public static final String CREATED_SEXP_NAME
private Date created
public static final String COMMENT_SEXP_NAME
private Sexp comment
| Constructor Detail |
protected CertBody()
throws SPKIException
CertBody(SExpression),
CertBody(Sexp,Issuer,LocObj[],LocObj[],Escrow,Sexp)
protected CertBody(SExpression sexp)
throws ParseException,
SPKIException
protected CertBody(Sexp cert_display,
Issuer issuer,
LocObj[] issuer_loc,
LocObj[] subject_loc,
Escrow escrow,
Sexp comment)
throws SPKIException
cert_display - The optional display field, maybe null.issuer - The issuer field.issuer_loc - The optional issuer-info, maybe null.subject_loc - The optional subject-info field, maybe null.escrow - The optional escrow field, maybe null.comment - The optional comment field, maybe null.setCreated()| Method Detail |
public Sexp getCertDisplay()
throws SPKIException
public int getIssuerLocLength()
public LocObj getIssuerLoc(int index)
index - index of the element required.public int getSubjectLocLength()
public LocObj getSubjectLoc(int index)
index - index of the element required.public Issuer getIssuer()
public abstract Subject getSubject()
throws SPKIException
public Escrow getEscrow()
public Date getCreated()
public abstract Validity getValidity()
public Sexp getComment()
throws SPKIException
public void setCreated()
throws IllegalStateException,
SPKIException
public static final CertBody getInstance(SExpression sexp)
throws ParseException,
SPKIException
sexp - the SExpression containing a certificate body.public static final boolean isCertBody(SExpression sexp)
SExpression buildVersionSExpression()
throws SPKIException
SExpression buildCertDisplaySExpression()
throws SPKIException
SExpression buildCreatedSExpression()
throws SPKIException
SExpression buildCommentSExpression()
throws SPKIException
SExpression buildIssuerLocSExpression()
throws SPKIException
SExpression buildSubjectLocSExpression()
throws SPKIException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||