- java.lang.Object
-
- dev.onvoid.webrtc.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 Summary
Constructors Constructor Description RTCCertificatePEM(String privateKey, String certificate, long expires)Creates a new RTCCertificatePEM instance with the specified PEM string representation of the private key and certificate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCertificate()longgetExpires()StringgetPrivateKey()
-
-
-
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.
-
-