public class Validity extends Object
| Constructor and Description |
|---|
Validity() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getStartFrom()
起始时间,为可选值: - 格式为时间戳(毫秒级),如1645146939688代表2022-02-18 09:15:39; - 不早于当前时间5分钟,即start_from > (current_time - 5min)。
|
String |
getType()
有效期类型,为必填值: - **YEAR** : 年(12个月) - **MONTH** : 月(统一按31天) - **DAY** : 日 - **HOUR** : 小时
|
Integer |
getValue()
证书有效期值,与type对应的类型值,换算成年需满足以下规则: - 根CA,有效期小于等于30年; - 从属CA与私有证书,有效期小于等于20年。
|
int |
hashCode() |
void |
setStartFrom(Integer startFrom) |
void |
setType(String type) |
void |
setValue(Integer value) |
String |
toString() |
Validity |
withStartFrom(Integer startFrom) |
Validity |
withType(String type) |
Validity |
withValue(Integer value) |
public String getType()
public void setType(String type)
public Integer getValue()
public void setValue(Integer value)
public Integer getStartFrom()
public void setStartFrom(Integer startFrom)
Copyright © 2022. All rights reserved.