public class RtcCertificatePem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
certificate
PEM string representation of the certificate.
|
java.lang.String |
privateKey
PEM string representation of the private key.
|
Constructor and Description |
---|
RtcCertificatePem(java.lang.String privateKey,
java.lang.String certificate)
Instantiate an RtcCertificatePem object from stored strings.
|
Modifier and Type | Method and Description |
---|---|
static RtcCertificatePem |
generateCertificate()
Generate a new RtcCertificatePem with the default settings of KeyType = ECDSA and
expires = 30 days.
|
static RtcCertificatePem |
generateCertificate(long expires)
Generate a new RtcCertificatePem with a custom expires and the default setting of
KeyType = ECDSA.
|
static RtcCertificatePem |
generateCertificate(PeerConnection.KeyType keyType)
Generate a new RtcCertificatePem with a custom KeyType and the default setting of
expires = 30 days.
|
static RtcCertificatePem |
generateCertificate(PeerConnection.KeyType keyType,
long expires)
Generate a new RtcCertificatePem with a custom KeyType and a custom expires.
|
public final java.lang.String privateKey
public final java.lang.String certificate
public RtcCertificatePem(java.lang.String privateKey, java.lang.String certificate)
public static RtcCertificatePem generateCertificate()
public static RtcCertificatePem generateCertificate(PeerConnection.KeyType keyType)
public static RtcCertificatePem generateCertificate(long expires)
public static RtcCertificatePem generateCertificate(PeerConnection.KeyType keyType, long expires)
6.0.0