congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SVNSSLUtil.getServerCertificateFailures
Code IndexAdd Tabnine to your IDE (free)

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

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

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;
}

origin: org.codehaus.jtstand/jtstand-svnkit

int failures = SVNSSLUtil.getServerCertificateFailures(certs[0], myURL.getHost());
origin: org.jvnet.hudson.svnkit/svnkit

int failures = SVNSSLUtil.getServerCertificateFailures(certs[0], myURL.getHost());
origin: org.tmatesoft.svnkit/svnkit

int failures = SVNSSLUtil.getServerCertificateFailures(certs[0], myURL.getHost());
org.tmatesoft.svn.core.internal.utilSVNSSLUtilgetServerCertificateFailures

Popular methods of SVNSSLUtil

  • getFingerprint
  • getServerCertificatePrompt
  • getServerCertificateInfo

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JFrame (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now