Package tvi.webrtc
Class RtcCertificatePem
- java.lang.Object
-
- tvi.webrtc.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RtcCertificatePem
generateCertificate()
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
generateCertificate(PeerConnection.KeyType keyType)
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.
-
-
-
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.
-
-