class XMPPNotificationService {

    SSLContext getSecurityContext () throws NoSuchAlgorithmException, KeyManagementException {
        if (serverCertFingerprint != null && !serverCertFingerprint.isBlank()) {
            return JavaPinning.forPin(serverCertFingerprint);
        }
        return SSLContext.getDefault();
    }

}