| java.lang.Object sun.security.x509.CertificateValidity
CertificateValidity | public class CertificateValidity implements CertAttrSet(Code) | | This class defines the interval for which the certificate is valid.
author: Amit Kapoor author: Hemma Prafullchandra version: 1.16 See Also: CertAttrSet |
Field Summary | |
final public static String | IDENT Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type. | final public static String | NAME Sub attributes name for this CertAttrSet. | final public static String | NOT_AFTER | final public static String | NOT_BEFORE |
Method Summary | |
public void | decode(InputStream in) Decode the CertificateValidity period from the InputStream. | public void | delete(String name) Delete the attribute value. | public void | encode(OutputStream out) Encode the CertificateValidity period in DER form to the stream. | public Object | get(String name) Get the attribute value. | public Enumeration | getElements() Return an enumeration of names of attributes existing within this
attribute. | public String | getName() Return the name of this attribute. | public void | set(String name, Object obj) Set the attribute value. | public String | toString() Return the validity period as user readable string. | public void | valid() Verify that the current time is within the validity period. | public void | valid(Date now) Verify that the passed time is within the validity period. |
IDENT | final public static String IDENT(Code) | | Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
NAME | final public static String NAME(Code) | | Sub attributes name for this CertAttrSet.
|
CertificateValidity | public CertificateValidity()(Code) | | Default constructor for the class.
|
CertificateValidity | public CertificateValidity(Date notBefore, Date notAfter)(Code) | | The default constructor for this class for the specified interval.
Parameters: notBefore - the date and time before which the certificateis not valid. Parameters: notAfter - the date and time after which the certificate isnot valid. |
CertificateValidity | public CertificateValidity(DerInputStream in) throws IOException(Code) | | Create the object, decoding the values from the passed DER stream.
Parameters: in - the DerInputStream to read the CertificateValidity from. exception: IOException - on decoding errors. |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode the CertificateValidity period from the InputStream.
Parameters: in - the InputStream to unmarshal the contents from. exception: IOException - on errors. |
encode | public void encode(OutputStream out) throws IOException(Code) | | Encode the CertificateValidity period in DER form to the stream.
Parameters: out - the OutputStream to marshal the contents to. exception: IOException - on errors. |
getElements | public Enumeration getElements()(Code) | | Return an enumeration of names of attributes existing within this
attribute.
|
getName | public String getName()(Code) | | Return the name of this attribute.
|
toString | public String toString()(Code) | | Return the validity period as user readable string.
|
|
|