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

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

Best Java code snippets using org.tmatesoft.svn.core.internal.util.SVNSSLUtil.getFingerprint (Showing top 9 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.tmatesoft.svnkit/svnkit

private static String getFingerprint(X509Certificate cert) {
  try  {
    return getFingerprint(cert.getEncoded(), "SHA1");
  } catch (Exception e)  {
  } 
  return null;
}
origin: org.jvnet.hudson.svnkit/svnkit

private static String getFingerprint(X509Certificate cert) {
  try  {
    return getFingerprint(cert.getEncoded());
  } catch (Exception e)  {
  } 
  return null;
}
origin: org.tmatesoft.svnkit/svnkit

private static void getServerCertificateInfo(X509Certificate cert, StringBuffer info) {
  info.append("Certificate information:");
  info.append('\n');
  info.append(" - Subject: ");
  info.append(cert.getSubjectDN().getName());
  info.append('\n');
  info.append(" - Valid: ");
  info.append("from " + cert.getNotBefore() + " until " + cert.getNotAfter());
  info.append('\n');
  info.append(" - Issuer: ");
  info.append(cert.getIssuerDN().getName());
  info.append('\n');
  info.append(" - Fingerprint: ");
  info.append(getFingerprint(cert));
}
origin: org.codehaus.jtstand/jtstand-svnkit

private static void getServerCertificateInfo(X509Certificate cert, StringBuffer info) {
  info.append("Certificate information:");
  info.append('\n');
  info.append(" - Subject: ");
  info.append(cert.getSubjectDN().getName());
  info.append('\n');
  info.append(" - Valid: ");
  info.append("from " + cert.getNotBefore() + " until " + cert.getNotAfter());
  info.append('\n');
  info.append(" - Issuer: ");
  info.append(cert.getIssuerDN().getName());
  info.append('\n');
  info.append(" - Fingerprint: ");
  info.append(getFingerprint(cert));
}
origin: org.jvnet.hudson.svnkit/svnkit

private static void getServerCertificateInfo(X509Certificate cert, StringBuffer info) {
  info.append("Certificate information:");
  info.append('\n');
  info.append(" - Subject: ");
  info.append(cert.getSubjectDN().getName());
  info.append('\n');
  info.append(" - Valid: ");
  info.append("from " + cert.getNotBefore() + " until " + cert.getNotAfter());
  info.append('\n');
  info.append(" - Issuer: ");
  info.append(cert.getIssuerDN().getName());
  info.append('\n');
  info.append(" - Fingerprint: ");
  info.append(getFingerprint(cert));
}
origin: org.tmatesoft.svnkit/svnkit-javahl16

public int acceptServerAuthentication(SVNURL url, String realm, Object serverAuth,  boolean resultMayBeStored) {
  if (serverAuth instanceof X509Certificate) {
    serverAuth = serverAuth instanceof X509Certificate ?
        SVNSSLUtil.getServerCertificatePrompt((X509Certificate) serverAuth, realm, url.getHost()) : serverAuth;
    if (serverAuth == null) {
      serverAuth = "Unsupported certificate type '" + (serverAuth != null ? serverAuth.getClass().getName() : "null") + "'";
    }
    return prompt.askTrustSSLServer(serverAuth.toString(), resultMayBeStored);
  } else if (prompt != null && serverAuth instanceof byte[]) {
    String prompt = "The ''{0}'' server''s key fingerprint is:\n{1}\n" +
        "If you trust this host, select ''Yes'' to add the key to the SVN cache and carry on connecting.\n" +
        "If you do not trust this host, select ''No'' to abandon the connection.";
    prompt = MessageFormat.format(prompt, new Object[]{url.getHost(), SVNSSLUtil.getFingerprint((byte[]) serverAuth, "MD5")});
    if (!this.prompt.askYesNo(realm, prompt, false)) {
      return REJECTED;
    }
  }
  return ACCEPTED;
}
origin: org.tmatesoft.svnkit/svnkit-javahl16

public int acceptServerAuthentication(SVNURL url, String realm, Object serverAuth,  boolean resultMayBeStored) {
  if (myPrompt instanceof PromptUserPassword2 && serverAuth instanceof X509Certificate) {
    PromptUserPassword2 sslPrompt = (PromptUserPassword2) myPrompt;
    serverAuth = serverAuth instanceof X509Certificate ?
        SVNSSLUtil.getServerCertificatePrompt((X509Certificate) serverAuth, realm, url.getHost()) : serverAuth;
    if (serverAuth == null) {
      serverAuth = "Unsupported certificate type '" + (serverAuth != null ? serverAuth.getClass().getName() : "null") + "'";
    }
    return sslPrompt.askTrustSSLServer(serverAuth.toString(), resultMayBeStored);
  } else if (myPrompt != null && serverAuth instanceof byte[]) {
    String prompt = "The ''{0}'' server''s key fingerprint is:\n{1}\n" +
        "If you trust this host, select ''Yes'' to add the key to the SVN cache and carry on connecting.\n" +
        "If you do not trust this host, select ''No'' to abandon the connection.";            
    prompt = MessageFormat.format(prompt, new Object[] {url.getHost(), SVNSSLUtil.getFingerprint((byte[]) serverAuth, "MD5")});
    if (!myPrompt.askYesNo(realm, prompt, false)) {
      return REJECTED;
    }                
  }
  return ACCEPTED;
}
origin: sonia.svnkit/svnkit-cli

  prompt.append("\n(R)eject or accept (t)emporarily? "); 
System.err.print(MessageFormat.format(prompt.toString(), new Object[] {url.getHost(), SVNSSLUtil.getFingerprint((byte[]) certificate, "MD5")}));
System.err.flush();
while(true) {
origin: org.tmatesoft.svnkit/svnkit-cli

  prompt.append("\n(R)eject or accept (t)emporarily? "); 
System.err.print(MessageFormat.format(prompt.toString(), new Object[] {url.getHost(), SVNSSLUtil.getFingerprint((byte[]) certificate, "MD5")}));
System.err.flush();
while(true) {
org.tmatesoft.svn.core.internal.utilSVNSSLUtilgetFingerprint

Popular methods of SVNSSLUtil

  • getServerCertificatePrompt
  • getServerCertificateFailures
  • getServerCertificateInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • 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:
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Reference (javax.naming)
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