congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SVNSSLUtil.getServerCertificateInfo
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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