A certificate to be used for DTLS communication. More...
Public Member Functions | |
| DtlsCertificate () | |
Static Public Member Functions | |
| static fm.liveswitch.DtlsCertificate | generateCertificate () |
| Generates a certificate with a default issuer/subject name and an expiration date of 10 days from now. More... | |
| static fm.liveswitch.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | 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.DtlsCertificate | generateCertificateFromOldCertificate (fm.liveswitch.DtlsCertificate 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.DtlsCertificate | generateCertificateFromOldCertificate (fm.liveswitch.DtlsCertificate 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 (ECDSA). More... | |
| static fm.liveswitch.DtlsCertificate | parseBytes (byte[] bytes) |
| Deserializes a certificate from binary. More... | |
| static void | setDefaultKeyType (fm.liveswitch.AsymmetricKeyType value) |
| Sets the default asymmetric key type (ECDSA). More... | |
Protected Member Functions | |
| fm.liveswitch.DtlsCertificate | createCertificate () |
| Creates the certificate. More... | |
| fm.liveswitch.DtlsFingerprint | createFingerprint (String algorithm, String value) |
| Creates a fingerprint. More... | |
A certificate to be used for DTLS communication.
| fm.liveswitch.DtlsCertificate.DtlsCertificate | ( | ) |
|
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 (ECDSA).
|
static |
Deserializes a certificate from binary.
| bytes | The bytes. |
|
static |
Sets the default asymmetric key type (ECDSA).