Package tvi.webrtc
Class RtcCertificatePem
java.lang.Object
tvi.webrtc.RtcCertificatePem
Easily storable/serializable version of a native C++ RTCCertificatePEM.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRtcCertificatePem
(String privateKey, String certificate) Instantiate an RtcCertificatePem object from stored strings. -
Method Summary
Modifier and TypeMethodDescriptionstatic RtcCertificatePem
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
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.
-
Field Details
-
privateKey
PEM string representation of the private key. -
certificate
PEM string representation of the certificate.
-
-
Constructor Details
-
RtcCertificatePem
Instantiate an RtcCertificatePem object from stored strings.
-
-
Method Details
-
generateCertificate
Generate a new RtcCertificatePem with the default settings of KeyType = ECDSA and expires = 30 days. -
generateCertificate
Generate a new RtcCertificatePem with a custom KeyType and the default setting of expires = 30 days. -
generateCertificate
Generate a new RtcCertificatePem with a custom expires and the default setting of KeyType = ECDSA. -
generateCertificate
Generate a new RtcCertificatePem with a custom KeyType and a custom expires.
-