private boolean isSelfSigned(X509Certificate cert){
  return signedBy(cert,cert);
}

private boolean isSelfSigned ( X509Certificate cert ) { return signedBy ( cert , cert ) ; }
returns true if the certificate is self - signed , false otherwise .
