Package tvi.webrtc

Class RtcCertificatePem


  • public class RtcCertificatePem
    extends java.lang.Object
    Easily storable/serializable version of a native C++ RTCCertificatePEM.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String certificate
      PEM string representation of the certificate.
      java.lang.String privateKey
      PEM string representation of the private key.
    • Constructor Summary

      Constructors 
      Constructor Description
      RtcCertificatePem​(java.lang.String privateKey, java.lang.String certificate)
      Instantiate an RtcCertificatePem object from stored strings.
    • Field Detail

      • privateKey

        public final java.lang.String privateKey
        PEM string representation of the private key.
      • certificate

        public final java.lang.String certificate
        PEM string representation of the certificate.
    • Constructor Detail

      • RtcCertificatePem

        public RtcCertificatePem​(java.lang.String privateKey,
                                 java.lang.String certificate)
        Instantiate an RtcCertificatePem object from stored strings.
    • Method Detail

      • generateCertificate

        public static RtcCertificatePem generateCertificate()
        Generate a new RtcCertificatePem with the default settings of KeyType = ECDSA and expires = 30 days.
      • generateCertificate

        public static RtcCertificatePem generateCertificate​(PeerConnection.KeyType keyType)
        Generate a new RtcCertificatePem with a custom KeyType and the default setting of expires = 30 days.
      • generateCertificate

        public static RtcCertificatePem generateCertificate​(long expires)
        Generate a new RtcCertificatePem with a custom expires and the default setting of KeyType = ECDSA.
      • generateCertificate

        public static RtcCertificatePem generateCertificate​(PeerConnection.KeyType keyType,
                                                            long expires)
        Generate a new RtcCertificatePem with a custom KeyType and a custom expires.