Package tvi.webrtc

Class RtcCertificatePem

java.lang.Object
tvi.webrtc.RtcCertificatePem

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

    • privateKey

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

      public final String certificate
      PEM string representation of the certificate.
  • Constructor Details

    • RtcCertificatePem

      public RtcCertificatePem(String privateKey, String certificate)
      Instantiate an RtcCertificatePem object from stored strings.
  • Method Details

    • 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.