@Table(value="trustbundle") public class TrustBundle extends Object
| Constructor and Description |
|---|
TrustBundle() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleName()
Gets the value of the bundle name.
|
String |
getBundleURL()
Gets the value of the bundle URL.
|
String |
getCheckSum()
Get the value of the bundle check sum.
|
LocalDateTime |
getCreateTime()
Get the value of createTime.
|
Long |
getId() |
LocalDateTime |
getLastRefreshAttempt()
Get the value of the last refresh attempt date time.
|
int |
getLastRefreshError()
Get the value of the last refresh error.
|
LocalDateTime |
getLastSuccessfulRefresh()
Get the value of the last successful refresh date time.
|
int |
getRefreshInterval()
Gets the value of the bundle refresh interval in seconds.
|
byte[] |
getSigningCertificateData()
Gets the value of the signing certificate as it DER encoded byte array.
|
void |
setBundleName(String bundleName)
Set the value of the bundle name.
|
void |
setBundleURL(String bundleURL)
Set the value of the bundle url.
|
void |
setCheckSum(String checkSum)
Set the value of the bundle check sum.
|
void |
setCreateTime(LocalDateTime timestamp)
Set the value of createTime.
|
void |
setId(Long id)
Set the value of id.
|
void |
setLastRefreshAttempt(LocalDateTime lastRefreshAttempt)
Set the value of the last refresh attempt date time.
|
void |
setLastRefreshError(int lastRefreshError)
Set the value of the last refresh error.
|
void |
setLastSuccessfulRefresh(LocalDateTime lastSuccessfulRefresh)
Set the value of the last successful refresh date time
|
void |
setRefreshInterval(int refreshInterval)
Set the value of the bundle refresh interval in seconds
|
void |
setSigningCertificateData(byte[] signingCertificateData)
Set the value of the signing certificate
|
X509Certificate |
toSigningCertificate()
Converts the signing data into an X509 certificate
|
void |
validate()
Validates that the bundle has valid and complete data
|
public Long getId()
public void setId(Long id)
id - The value of id.public String getBundleName()
public void setBundleName(String bundleName)
bundleName - The value of the bundleNamepublic String getBundleURL()
public void setBundleURL(String bundleURL)
bundleURL - The value of the bundle URLpublic byte[] getSigningCertificateData()
public void setSigningCertificateData(byte[] signingCertificateData)
throws CertificateException
signingCertificateData - The value of the signing certificateCertificateExceptionpublic int getRefreshInterval()
public void setRefreshInterval(int refreshInterval)
refreshInterval - The value of the bundle refresh intervalpublic LocalDateTime getCreateTime()
public void setCreateTime(LocalDateTime timestamp)
timestamp - The value of createTime.public LocalDateTime getLastSuccessfulRefresh()
public void setLastSuccessfulRefresh(LocalDateTime lastSuccessfulRefresh)
lastSuccessfulRefresh - The value of the last successful refresh date timepublic LocalDateTime getLastRefreshAttempt()
public void setLastRefreshAttempt(LocalDateTime lastRefreshAttempt)
lastRefreshAttempt - The value of the last refresh attempt date time.public int getLastRefreshError()
public void setLastRefreshError(int lastRefreshError)
lastRefreshError - The value of the last refresh error.public String getCheckSum()
public void setCheckSum(String checkSum)
checkSum - The value of the bundle check sum.public X509Certificate toSigningCertificate() throws CertificateException
CertificateExceptionpublic void validate()
throws CertificateException
CertificateExceptionCopyright © 2020. All rights reserved.