A TBSCertificate (to-be-signed certificate), the actual information in
a certificate apart from the signature.
addExtension
public void addExtension(Extension extension)
throws CertificateException
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getExtension
public Extension getExtension(OBJECT_IDENTIFIER oid)
Linearly searches the extension list for an extension with the given
object identifier. It returns the first one it finds. If none are found,
returns null.
getExtensions
public SEQUENCE getExtensions()
Returns the extensions of this certificate. The sequence may be
empty, but this method will never return null
.
getIssuer
public Name getIssuer()
getIssuerUniqueIdentifier
public BIT_STRING getIssuerUniqueIdentifier()
Should only be called if this field is present.
getNotAfter
public Date getNotAfter()
getNotBefore
public Date getNotBefore()
getSerialNumber
public INTEGER getSerialNumber()
getSubject
public Name getSubject()
getSubjectUniqueIdentifier
public BIT_STRING getSubjectUniqueIdentifier()
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value
hasExtensions
public boolean hasExtensions()
hasIssuerUniqueIdentifier
public boolean hasIssuerUniqueIdentifier()
hasSubjectUniqueIdentifier
public boolean hasSubjectUniqueIdentifier()
isExtensionPresent
public boolean isExtensionPresent(OBJECT_IDENTIFIER oid)
Linearly searches the extension list for an extension with the given
object identifier. If it finds one, returns true. Otherwise,
returns false.
setExtensions
public void setExtensions(SEQUENCE extensions)
throws CertificateException
setIssuer
public void setIssuer(Name issuer)
setIssuerUniqueIdentifier
public void setIssuerUniqueIdentifier(BIT_STRING issuerUniqueIdentifier)
throws CertificateException
setNotAfter
public void setNotAfter(Date notAfter)
setNotBefore
public void setNotBefore(Date notBefore)
setSerialNumber
public void setSerialNumber(INTEGER serialNumber)
setSubject
public void setSubject(Name subject)
setSubjectPublicKeyInfo
public void setSubjectPublicKeyInfo(PublicKey pubk)
throws InvalidBERException,
IOException
Extracts the SubjectPublicKeyInfo from the given public key and
stores it in the CertificateInfo.
InvalidBERException
- If an error occurs decoding the
the information extracted from the public key.
setSubjectPublicKeyInfo
public void setSubjectPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)
setSubjectUniqueIdentifier
public void setSubjectUniqueIdentifier(BIT_STRING subjectUniqueIdentifier)
throws CertificateException