question: returns the sha-256 of certificate 's public key . in okhttp 3.1.2 and earlier , this returned a sha-1 hash of the public key . both types are supported , but sha-256 is preferred . concode_field_sep List<Pin> pins concode_elem_sep CertificatePinner DEFAULT concode_elem_sep String pattern concode_elem_sep List<Pin> pins concode_elem_sep CertificateChainCleaner certificateChainCleaner concode_elem_sep String hashAlgorithm concode_elem_sep ByteString hash concode_field_sep ByteString sha1 concode_elem_sep Builder add concode_elem_sep ByteString sha256 concode_elem_sep CertificatePinner build concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_sep void check concode_elem_sep void check concode_elem_sep boolean matches concode_elem_sep List<Pin> findMatchingPins concode_elem_sep CertificatePinner withCertificateChainCleaner
target: String function ( Certificate arg0 ) { if ( ! ( arg0 instanceof X509Certificate ) ) { throw new IllegalArgumentException ( "srini_string" ) ; } return "srini_string" + sha256 ( ( X509Certificate ) arg0 ) . base64 ( ) ; }