|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security12.sun.security.x509.CertificateValidity
This class defines the interval for which the certificate is valid.
CertAttrSet
Field Summary | |
static String |
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. |
static String |
NAME
Sub attributes name for this CertAttrSet. |
static String |
NOT_AFTER
|
static String |
NOT_BEFORE
|
Constructor Summary | |
CertificateValidity()
Default constructor for the class. |
|
CertificateValidity(Date notBefore,
Date notAfter)
The default constructor for this class for the specified interval. |
|
CertificateValidity(DerInputStream in)
Create the object, decoding the values from the passed DER stream. |
Method Summary | |
void |
decode(InputStream in)
Decode the CertificateValidity period from the InputStream. |
void |
delete(String name)
Delete the attribute value. |
void |
encode(OutputStream out)
Encode the CertificateValidity period in DER form to the stream. |
Object |
get(String name)
Get the attribute value. |
Enumeration |
getElements()
Return an enumeration of names of attributes existing within this attribute. |
String |
getName()
Return the name of this attribute. |
void |
set(String name,
Object obj)
Set the attribute value. |
String |
toString()
Return the validity period as user readable string. |
void |
valid()
Verify that the current time is within the validity period. |
void |
valid(Date now)
Verify that the passed time is within the validity period. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final String IDENT
public static final String NAME
public static final String NOT_BEFORE
public static final String NOT_AFTER
Constructor Detail |
public CertificateValidity()
public CertificateValidity(Date notBefore, Date notAfter)
notBefore
- the date and time before which the certificate
is not valid.notAfter
- the date and time after which the certificate is
not valid.public CertificateValidity(DerInputStream in) throws IOException
in
- the DerInputStream to read the CertificateValidity from.Method Detail |
public String toString()
public void decode(InputStream in) throws IOException
in
- the InputStream to unmarshal the contents from.public void encode(OutputStream out) throws IOException
out
- the OutputStream to marshal the contents to.public void set(String name, Object obj) throws IOException
public Object get(String name) throws IOException
public void delete(String name) throws IOException
public Enumeration getElements()
public String getName()
public void valid() throws CertificateNotYetValidException, CertificateExpiredException
public void valid(Date now) throws CertificateNotYetValidException, CertificateExpiredException
now
- the Date against which to compare the validity
period.Date
supplied.Date
supplied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |