public class CertificateValidity
extends java.lang.Object
implements java.io.Serializable
When the certificate is valid.
Constructor and Description |
---|
CertificateValidity() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getNotAfter()
The certificate is not valid after this date.
|
java.util.Date |
getNotBefore()
The certificate is not valid before this date.
|
int |
hashCode() |
void |
setNotAfter(java.util.Date notAfter)
The certificate is not valid after this date.
|
void |
setNotBefore(java.util.Date notBefore)
The certificate is not valid before this date.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CertificateValidity |
withNotAfter(java.util.Date notAfter)
The certificate is not valid after this date.
|
CertificateValidity |
withNotBefore(java.util.Date notBefore)
The certificate is not valid before this date.
|
public java.util.Date getNotBefore()
The certificate is not valid before this date.
The certificate is not valid before this date.
public void setNotBefore(java.util.Date notBefore)
The certificate is not valid before this date.
notBefore
- The certificate is not valid before this date.
public CertificateValidity withNotBefore(java.util.Date notBefore)
The certificate is not valid before this date.
Returns a reference to this object so that method calls can be chained together.
notBefore
- The certificate is not valid before this date.
public java.util.Date getNotAfter()
The certificate is not valid after this date.
The certificate is not valid after this date.
public void setNotAfter(java.util.Date notAfter)
The certificate is not valid after this date.
notAfter
- The certificate is not valid after this date.
public CertificateValidity withNotAfter(java.util.Date notAfter)
The certificate is not valid after this date.
Returns a reference to this object so that method calls can be chained together.
notAfter
- The certificate is not valid after this date.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.