question: public static SslSettings trustCertificateCN ( String certificateCommonName ) { checkArgument ( ! isNullOrEmpty ( certificateCommonName ) , "certificateCommonName is null or empty" ) ; return new SslSettings ( true , certificateCommonName , true ) ; }
target:  Creates a new SSL settings that enables connection encryption using SSL and trusts an X.509 server certificate whose Common Name (CN) matches.