Class CertificateRenewalWindowExtension
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.Extension
-
- org.mozilla.jss.netscape.security.extensions.CertificateRenewalWindowExtension
-
- All Implemented Interfaces:
java.io.Serializable,CertAttrSet
public class CertificateRenewalWindowExtension extends Extension implements CertAttrSet
This represents the CertificateRenewalWindow extension as defined in draft-thayes-cert-renewal-00 CertificateRenewalWindow ::= SEQUENCE { beginTime GeneralizedTime, endTime GeneralizedTime OPTIONAL }- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectIdentifierIDstatic java.lang.StringNAMEstatic int[]OID-
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
-
Constructor Summary
Constructors Constructor Description CertificateRenewalWindowExtension(boolean critical)CertificateRenewalWindowExtension(boolean critical, java.util.Date beginTime, java.util.Date endTime)CertificateRenewalWindowExtension(java.lang.Boolean critical, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(java.io.InputStream in)Decodes this extension.voiddelete(java.lang.String name)Deletes attribute.voidencode(java.io.OutputStream out)Write the extension to the DerOutputStream.java.lang.Objectget(java.lang.String name)Retrieves extension attribute.java.util.Enumeration<java.lang.String>getAttributeNames()Return an enumeration of names of attributes existing within this attribute.java.util.DategetBeginTime()java.util.DategetEndTime()java.lang.StringgetName()Returns the name (identifier) of this CertAttrSet.voidset(java.lang.String name, java.lang.Object obj)Sets extension attribute.voidsetBeginTime(java.util.Date d)voidsetEndTime(java.util.Date d)java.lang.StringtoString()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 Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
OID
public static final int[] OID
-
ID
public static final ObjectIdentifier ID
-
-
Constructor Detail
-
CertificateRenewalWindowExtension
public CertificateRenewalWindowExtension(boolean critical, java.util.Date beginTime, java.util.Date endTime) throws java.io.IOException- Throws:
java.io.IOException
-
CertificateRenewalWindowExtension
public CertificateRenewalWindowExtension(boolean critical)
-
CertificateRenewalWindowExtension
public CertificateRenewalWindowExtension(java.lang.Boolean critical, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:CertAttrSetReturns the name (identifier) of this CertAttrSet.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
set
public void set(java.lang.String name, java.lang.Object obj) throws java.security.cert.CertificateExceptionSets extension attribute.- Specified by:
setin interfaceCertAttrSet- Parameters:
name- the name of the attribute (e.g. "x509.info.key")obj- the attribute object.- Throws:
java.security.cert.CertificateException- on attribute handling errors.
-
get
public java.lang.Object get(java.lang.String name) throws java.security.cert.CertificateExceptionRetrieves extension attribute.- Specified by:
getin interfaceCertAttrSet- Parameters:
name- the name of the attribute to return.- Throws:
java.security.cert.CertificateException- on attribute handling errors.
-
delete
public void delete(java.lang.String name) throws java.security.cert.CertificateExceptionDeletes attribute.- Specified by:
deletein interfaceCertAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
java.security.cert.CertificateException- on attribute handling errors.
-
decode
public void decode(java.io.InputStream in) throws java.io.IOExceptionDecodes this extension.- Specified by:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to read the encoded attribute from.- Throws:
java.io.IOException- on other errors.
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getBeginTime
public java.util.Date getBeginTime()
-
getEndTime
public java.util.Date getEndTime()
-
setBeginTime
public void setBeginTime(java.util.Date d)
-
setEndTime
public void setEndTime(java.util.Date d)
-
encode
public void encode(java.io.OutputStream out) throws java.io.IOExceptionWrite the extension to the DerOutputStream.- Specified by:
encodein interfaceCertAttrSet- Parameters:
out- the DerOutputStream to write the extension to.- Throws:
java.io.IOException- on encoding errors.
-
toString
public java.lang.String toString()
Returns a printable representation of the CertificateRenewalWindow.- Specified by:
toStringin interfaceCertAttrSet- Overrides:
toStringin classExtension- Returns:
- value of this certificate attribute in printable form.
-
-