Module webrtc.java

Class RTCCertificatePEM


  • public class RTCCertificatePEM
    extends Object
    Represents a certificate used to authenticate WebRTC communications. This class contains PEM strings of an RTCCertificate's private key and certificate.
    Author:
    Alex Andres
    • Constructor Detail

      • RTCCertificatePEM

        public RTCCertificatePEM​(String privateKey,
                                 String certificate,
                                 long expires)
        Creates a new RTCCertificatePEM instance with the specified PEM string representation of the private key and certificate.
        Parameters:
        privateKey - Private key as PEM string.
        certificate - Certificate as PEM string.
        expires - The expiration date of this certificate.
    • Method Detail

      • getPrivateKey

        public String getPrivateKey()
        Returns:
        The PEM string representation of the private key.
      • getCertificate

        public String getCertificate()
        Returns:
        The PEM string representation of the certificate.
      • getExpires

        public long getExpires()
        Returns:
        The expiration time in milliseconds of this certificate relative to the Unix epoch.