@Table public class Certificate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Certificate.CertContainer
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
NULL_CERT |
| Constructor and Description |
|---|
Certificate() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearData()
Clear the data of a Certificate.
|
LocalDateTime |
getCreateTime()
Get the value of createTime.
|
byte[] |
getData()
Get the value of data.
|
Long |
getId()
Get the value of id.
|
String |
getOwner()
Get the value of owner.
|
int |
getStatus()
Get the value of status.
|
String |
getThumbprint()
Get the value of thumbprint.
|
LocalDateTime |
getValidEndDate()
Get the value of validEndDate.
|
LocalDateTime |
getValidStartDate()
Get the value of validStartDate.
|
boolean |
isPrivateKey()
Indicates if the certificate has a private key
|
void |
setCreateTime(LocalDateTime timestamp)
Set the value of createTime.
|
void |
setData(byte[] data)
Set the value of data.
|
void |
setId(Long id)
Set the value of id.
|
void |
setOwner(String owner)
Set the value of owner.
|
void |
setPrivateKey(boolean b)
Indicates if the certificate has a private key
|
void |
setRawData(byte[] data) |
void |
setStatus(int status)
Set the value of status.
|
void |
setValidEndDate(LocalDateTime validEndDate)
Set the value of validEndDate.
|
void |
setValidStartDate(LocalDateTime validStartDate)
Set the value of validStartDate.
|
Certificate.CertContainer |
toCredential()
Deprecated.
|
Certificate.CertContainer |
toCredential(char[] keyStorePass,
char[] privateKeyPass)
Deprecated.
|
void |
validate()
Validate the Certificate for the existance of data.
|
public String getOwner()
public void setOwner(String owner)
owner - The value of owner.public byte[] getData()
public void setData(byte[] data)
throws CertificateException
data - The value of data.CertificateExceptionpublic void setRawData(byte[] data)
public boolean isPrivateKey()
public void setPrivateKey(boolean b)
throws CertificateException
data - CertificateExceptionpublic String getThumbprint()
public Long getId()
public void setId(Long id)
id - The value of id.public LocalDateTime getCreateTime()
public void setCreateTime(LocalDateTime timestamp)
timestamp - The value of createTime.public int getStatus()
public void setStatus(int status)
status - The value of status.public LocalDateTime getValidStartDate()
public void setValidStartDate(LocalDateTime validStartDate)
validStartDate - The value of validStartDate.public LocalDateTime getValidEndDate()
public void setValidEndDate(LocalDateTime validEndDate)
validEndDate - The value of validEndDate.public void validate()
throws CertificateException
CertificateExceptionpublic void clearData()
public Certificate.CertContainer toCredential() throws CertificateException
CertificateExceptionpublic Certificate.CertContainer toCredential(char[] keyStorePass, char[] privateKeyPass) throws CertificateException
CertificateExceptionCopyright © 2020. All rights reserved.