Codota Logo
SVNSSLUtil.getServerCertificateInfo
Code IndexAdd Codota to your IDE (free)

How to use
getServerCertificateInfo
method
in
org.tmatesoft.svn.core.internal.util.SVNSSLUtil

Best Java code snippets using org.tmatesoft.svn.core.internal.util.SVNSSLUtil.getServerCertificateInfo (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.codehaus.jtstand/jtstand-svnkit

public static StringBuffer getServerCertificatePrompt(X509Certificate cert, String realm, String hostName) {
  int failures = getServerCertificateFailures(cert, hostName);
  StringBuffer prompt = new StringBuffer();
  prompt.append("Error validating server certificate for '");
  prompt.append(realm);
  prompt.append("':\n");
  if ((failures & 8) != 0) {
    prompt.append(" - The certificate is not issued by a trusted authority. Use the\n" +
           "   fingerprint to validate the certificate manually!\n");
  }
  if ((failures & 4) != 0) {
    prompt.append(" - The certificate hostname does not match.\n");
  }
  if ((failures & 2) != 0) {
    prompt.append(" - The certificate has expired.\n");
  }
  if ((failures & 1) != 0) {
    prompt.append(" - The certificate is not yet valid.\n");
  }
  getServerCertificateInfo(cert, prompt);
  return prompt;
}

origin: org.jvnet.hudson.svnkit/svnkit

public static StringBuffer getServerCertificatePrompt(X509Certificate cert, String realm, String hostName) {
  int failures = getServerCertificateFailures(cert, hostName);
  StringBuffer prompt = new StringBuffer();
  prompt.append("Error validating server certificate for '");
  prompt.append(realm);
  prompt.append("':\n");
  if ((failures & 8) != 0) {
    prompt.append(" - The certificate is not issued by a trusted authority. Use the\n" +
           "   fingerprint to validate the certificate manually!\n");
  }
  if ((failures & 4) != 0) {
    prompt.append(" - The certificate hostname does not match.\n");
  }
  if ((failures & 2) != 0) {
    prompt.append(" - The certificate has expired.\n");
  }
  if ((failures & 1) != 0) {
    prompt.append(" - The certificate is not yet valid.\n");
  }
  getServerCertificateInfo(cert, prompt);
  return prompt;
}

origin: org.tmatesoft.svnkit/svnkit

public static StringBuffer getServerCertificatePrompt(X509Certificate cert, String realm, String hostName, EnumSet<SVNCertificateFailureKind> trustCertificateFailureKinds) {
  int failures = getServerCertificateFailures(cert, hostName);
  int trustMask = SVNCertificateFailureKind.createMask(trustCertificateFailureKinds);
  failures &= ~trustMask;
  StringBuffer prompt = new StringBuffer();
  prompt.append("Error validating server certificate for '");
  prompt.append(realm);
  prompt.append("':\n");
  if ((failures & SVNCertificateFailureKind.UNKNOWN_CA.getCode()) != 0) {
    prompt.append(" - The certificate is not issued by a trusted authority. Use the\n" +
           "   fingerprint to validate the certificate manually!\n");
  }
  if ((failures & SVNCertificateFailureKind.CN_MISMATCH.getCode()) != 0) {
    prompt.append(" - The certificate hostname does not match.\n");
  }
  if ((failures & SVNCertificateFailureKind.EXPIRED.getCode()) != 0) {
    prompt.append(" - The certificate has expired.\n");
  }
  if ((failures & SVNCertificateFailureKind.NOT_YET_VALID.getCode()) != 0) {
    prompt.append(" - The certificate is not yet valid.\n");
  }
  getServerCertificateInfo(cert, prompt);
  return prompt;
}

org.tmatesoft.svn.core.internal.utilSVNSSLUtilgetServerCertificateInfo

Popular methods of SVNSSLUtil

  • getFingerprint
  • getServerCertificatePrompt
  • getServerCertificateFailures

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now