A certificate to be used for TLS communication. More...
Public Member Functions | |
TlsCertificate () | |
Static Public Member Functions | |
static fm.liveswitch.TlsCertificate | generateCertificate () |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName) |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName, java.util.Date expirationDate) |
Generates a certificate with the given issuer name, subject name, and expiration date. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName, java.util.Date expirationDate, fm.liveswitch.AsymmetricKey key) |
Generates a certificate with the given issuer name, subject name, expiration date, and asymmetric key. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName, java.util.Date expirationDate, fm.liveswitch.AsymmetricKeyType keyType) |
Generates a certificate with the given issuer name, subject name, expiration date, and asymmetric key. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName, fm.liveswitch.AsymmetricKey key) |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String issuerName, String subjectName, fm.liveswitch.AsymmetricKeyType keyType) |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (fm.liveswitch.AsymmetricKey key) |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (fm.liveswitch.AsymmetricKeyType keyType) |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String name) |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String name, fm.liveswitch.AsymmetricKey key) |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificate (String name, fm.liveswitch.AsymmetricKeyType keyType) |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificateFromOldCertificate (fm.liveswitch.TlsCertificate oldCertificate) |
Generates a certificate using the issuer/subject name from an old certificate and an expiration date of 10 days from now. More... | |
static fm.liveswitch.TlsCertificate | generateCertificateFromOldCertificate (fm.liveswitch.TlsCertificate oldCertificate, java.util.Date expirationDate) |
Generates a certificate using the issuer/subject name from an old certificate and the given expiration date. More... | |
static fm.liveswitch.AsymmetricKeyType | getDefaultKeyType () |
Gets the default asymmetric key type (RSA). More... | |
static fm.liveswitch.TlsCertificate | parseBytes (byte[] bytes) |
Deserializes a certificate from binary. More... | |
static void | setDefaultKeyType (fm.liveswitch.AsymmetricKeyType value) |
Sets the default asymmetric key type (RSA). More... | |
Protected Member Functions | |
fm.liveswitch.TlsCertificate | createCertificate () |
Creates the certificate. More... | |
fm.liveswitch.TlsFingerprint | createFingerprint (String algorithm, String value) |
Creates a fingerprint. More... | |
A certificate to be used for TLS communication.
fm.liveswitch.TlsCertificate.TlsCertificate | ( | ) |
|
protected |
Creates the certificate.
|
protected |
Creates a fingerprint.
algorithm | The algorithm. |
value | The value. |
|
static |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now.
|
static |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now.
key | The asymmetric key (with public and private details). |
|
static |
Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now.
keyType | The asymmetric key type. |
|
static |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
|
static |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
key | The asymmetric key (with public and private details). |
|
static |
Generates a certificate with the given issuer name, subject name, and an expiration date of 10 days from now.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
keyType | The asymmetric key type. |
|
static |
Generates a certificate with the given issuer name, subject name, and expiration date.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
expirationDate | The expiration date. |
|
static |
Generates a certificate with the given issuer name, subject name, expiration date, and asymmetric key.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
expirationDate | The expiration date. |
key | The asymmetric key (with public and private details). |
|
static |
Generates a certificate with the given issuer name, subject name, expiration date, and asymmetric key.
issuerName | The name of the issuer. |
subjectName | The name of the subject. |
expirationDate | The expiration date. |
keyType | The asymmetric key type. |
|
static |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now.
name | The name of the issuer/subject. |
|
static |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now.
name | The name of the issuer/subject. |
key | The asymmetric key (with public and private details). |
|
static |
Generates a certificate with the given issuer/subject name and an expiration date of 10 days from now.
name | The name of the issuer/subject. |
keyType | The asymmetric key type. |
|
static |
Generates a certificate using the issuer/subject name from an old certificate and an expiration date of 10 days from now.
oldCertificate | The old certificate. |
|
static |
Generates a certificate using the issuer/subject name from an old certificate and the given expiration date.
oldCertificate | The old certificate. |
expirationDate | The expiration date. |
|
static |
Gets the default asymmetric key type (RSA).
|
static |
Deserializes a certificate from binary.
bytes | The bytes. |
|
static |
Sets the default asymmetric key type (RSA).