Class CertificateRenewalWindowExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.CertificateRenewalWindowExtension
- All Implemented Interfaces:
Serializable,CertAttrSet
This represents the CertificateRenewalWindow extension
as defined in draft-thayes-cert-renewal-00
CertificateRenewalWindow ::= SEQUENCE {
beginTime GeneralizedTime,
endTime GeneralizedTime OPTIONAL }
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectIdentifierprivate Dateprivate Datestatic final Stringstatic final int[]private static final longFields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue -
Constructor Summary
ConstructorsConstructorDescriptionCertificateRenewalWindowExtension(boolean critical) CertificateRenewalWindowExtension(boolean critical, Date beginTime, Date endTime) CertificateRenewalWindowExtension(Boolean critical, Object value) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(InputStream in) Decodes this extension.private voidvoidDeletes attribute.voidencode(OutputStream out) Write the extension to the DerOutputStream.private voidRetrieves extension attribute.Return an enumeration of names of attributes existing within this attribute.getName()Returns the name (identifier) of this CertAttrSet.voidSets extension attribute.voidsetBeginTime(Date d) voidsetEndTime(Date d) toString()Returns a printable representation of the CertificateRenewalWindow.Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NAME
- See Also:
-
OID
public static final int[] OID -
ID
-
mBeginTime
-
mEndTime
-
-
Constructor Details
-
CertificateRenewalWindowExtension
public CertificateRenewalWindowExtension(boolean critical, Date beginTime, Date endTime) throws IOException - Throws:
IOException
-
CertificateRenewalWindowExtension
public CertificateRenewalWindowExtension(boolean critical) -
CertificateRenewalWindowExtension
- Throws:
IOException
-
-
Method Details
-
getName
Description copied from interface:CertAttrSetReturns the name (identifier) of this CertAttrSet.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
set
Sets extension attribute.- Specified by:
setin interfaceCertAttrSet- Parameters:
name- the name of the attribute (e.g. "x509.info.key")obj- the attribute object.- Throws:
CertificateException- on attribute handling errors.
-
get
Retrieves extension attribute.- Specified by:
getin interfaceCertAttrSet- Parameters:
name- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException- on attribute handling errors.
-
delete
Deletes attribute.- Specified by:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
CertificateException- on attribute handling errors.
-
decode
Decodes this extension.- Specified by:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to read the encoded attribute from.- Throws:
IOException- on other errors.
-
getAttributeNames
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getBeginTime
-
getEndTime
-
setBeginTime
-
setEndTime
-
decodeThis
- Throws:
IOException
-
encodeThis
- Throws:
IOException
-
encode
Write the extension to the DerOutputStream.- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the DerOutputStream to write the extension to.- Throws:
IOException- on encoding errors.
-
toString
Returns a printable representation of the CertificateRenewalWindow.- Specified by:
toStringin interfaceCertAttrSet- Overrides:
toStringin classExtension- Returns:
- value of this certificate attribute in printable form.
-