public class TLSCertificates
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CA_CERTS_FILE |
Constructor and Description |
---|
TLSCertificates(java.lang.String udml)
Constructor: creates the certificates based on UDML
retrieved from ISY
|
Modifier and Type | Method and Description |
---|---|
void |
addCertificate(java.lang.String commonName)
Adds a certificate common name to the list of certificates.
It does not add the certificate itself |
void |
addCertificate(java.lang.String subjectCommonName,
java.lang.String issuerCommonName,
java.lang.String certificate,
boolean isRoot)
Adds a certificate to the list of certificates
|
void |
clearRemoved()
Clears the list of removed/deleted certificates
|
TLSCertificate |
getCertificate(java.lang.String commonName) |
java.util.Enumeration<java.lang.String> |
getCommonNames() |
int |
getCount() |
java.util.ArrayList<TLSCertificate> |
getRemoved() |
boolean |
removeCertificate(java.lang.String commonName)
Removes the certificate, given by commonName from the list of certificates
|
java.lang.String |
toUDML() |
public TLSCertificates(java.lang.String udml)
udml
- - the udml representation to build this object frompublic void addCertificate(java.lang.String subjectCommonName, java.lang.String issuerCommonName, java.lang.String certificate, boolean isRoot)
subjectCommonName
- - the common name for the certificate subjectissuerCommonName
- - the common name for the certificate issuercertificate
- - the certificate itself in PEM formatisRoot
- - whether or not this certificate is a root certificatepublic void addCertificate(java.lang.String commonName)
commonName
- - the common name for the certificatepublic boolean removeCertificate(java.lang.String commonName)
commonName
- - the common name for the certificatepublic TLSCertificate getCertificate(java.lang.String commonName)
commonName
- - the commonName for the certificate to be retrievedpublic java.util.Enumeration<java.lang.String> getCommonNames()
public java.util.ArrayList<TLSCertificate> getRemoved()
public void clearRemoved()
public int getCount()
public java.lang.String toUDML()