public static SslSettings trustCertificateCN(String certificateCommonName){
  checkArgument(!isNullOrEmpty(certificateCommonName),"certificateCommonName is null or empty");
  return new SslSettings(true,certificateCommonName,true);
}

public static SslSettings trustCertificateCN ( String certificateCommonName ) { checkArgument ( ! isNullOrEmpty ( certificateCommonName ) , "certificateCommonName is null or empty" ) ; return new SslSettings ( true , certificateCommonName , true ) ; }
creates a new ssl settings that enables connection encryption using ssl and trusts an x . 509 server certificate whose common name ( cn ) matches .
