org.mozilla.jss.pkix.crmf
public class CertTemplate extends Object implements ASN1Value
Nested Class Summary | |
---|---|
static class | CertTemplate.Template
A class for decoding CertTemplates. |
Field Summary | |
---|---|
static Tag | TAG |
Constructor Summary | |
---|---|
CertTemplate()
Creates an empty CertTemplate. |
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag t, OutputStream ostream) |
Extension | extensionAt(int idx)
Returns the ith extension. |
Name | getIssuer()
Returns the issuer field of this CertTemplate. |
BIT_STRING | getIssuerUID()
Returns the issuerUID field of this CertTemplate. |
Date | getNotAfter()
Returns the notAfter field of this CertTemplate. |
Date | getNotBefore()
Returns the notBefore field of this CertTemplate. |
SubjectPublicKeyInfo | getPublicKey()
Returns the publicKey field of this CertTemplate. |
INTEGER | getSerialNumber()
Returns the serialNumber field of this CertTemplate. |
AlgorithmIdentifier | getSigningAlg()
Returns the signingAlg field of this CertTemplate. |
Name | getSubject()
Sets the subject field of this CertTemplate. |
BIT_STRING | getSubjectUID()
Returns the subjectUID field of this CertTemplate. |
Tag | getTag() |
static CertTemplate.Template | getTemplate() |
INTEGER | getVersion()
Returns the version field of this CertTemplate. |
boolean | hasExtensions()
Returns true if the extensions field is present. |
boolean | hasIssuer()
Returns true if the issuer field is present. |
boolean | hasIssuerUID()
Returns true if the issuerUID field is present. |
boolean | hasNotAfter()
Returns true if the notAfter field is present. |
boolean | hasNotBefore()
Returns true if the notBefore field is present. |
boolean | hasPublicKey()
Returns true if the publicKey field is present. |
boolean | hasSerialNumber()
Returns true if the serialNumber field is present. |
boolean | hasSigningAlg()
Returns true if the signingAlg field is present. |
boolean | hasSubject()
Returns true if the subject field is present. |
boolean | hasSubjectUID()
Returns true if the subjectUID field is present. |
boolean | hasVersion()
Returns true if the version field is present. |
static void | main(String[] args) |
int | numExtensions()
Returns the number of extensions present in the template. |
void | print(PrintStream ps, int indentSpaces) |
void | setExtensions(SEQUENCE extensions)
Sets the extensions field of this CertTemplate. |
void | setIssuer(Name issuer)
Sets the issuer field of this CertTemplate. |
void | setIssuerUID(BIT_STRING issuerUID)
Sets the issuerUID field of this CertTemplate. |
void | setNotAfter(Date date)
Sets the notAfter field of this CertTemplate. |
void | setNotBefore(Date date)
Sets the version field of this CertTemplate. |
void | setPublicKey(SubjectPublicKeyInfo publicKey)
Sets the publicKey field of this CertTemplate. |
void | setSerialNumber(INTEGER serialNumber)
Sets the serialNumber field of this CertTemplate. |
void | setSigningAlg(AlgorithmIdentifier signingAlg)
Sets the signingAlg field of this CertTemplate. |
void | setSubject(Name subject)
Sets the subject field of this CertTemplate. |
void | setSubjectUID(BIT_STRING subjectUID)
Sets the subjectUID field of this CertTemplate. |
void | setVersion(INTEGER version)
Sets the version field of this CertTemplate. |
Parameters: idx The index of the extension to retrieve. Must be in the range [ 0, numExtensions()-1 ].