Java Code Examples for java.security.cert.CertStoreException#getCause()
The following examples show how to use
java.security.cert.CertStoreException#getCause() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CertStoreHelper.java From hottub with GNU General Public License v2.0 | 6 votes |
static boolean isCausedByNetworkIssue(String type, CertStoreException cse) { switch (type) { case "LDAP": case "SSLServer": try { CertStoreHelper csh = CertStoreHelper.getInstance(type); return csh.isCausedByNetworkIssue(cse); } catch (NoSuchAlgorithmException nsae) { return false; } case "URI": Throwable t = cse.getCause(); return (t != null && t instanceof IOException); default: // we don't know about any other remote CertStore types return false; } }
Example 2
Source File: CertStoreHelper.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
static boolean isCausedByNetworkIssue(String type, CertStoreException cse) { switch (type) { case "LDAP": case "SSLServer": try { CertStoreHelper csh = CertStoreHelper.getInstance(type); return csh.isCausedByNetworkIssue(cse); } catch (NoSuchAlgorithmException nsae) { return false; } case "URI": Throwable t = cse.getCause(); return (t != null && t instanceof IOException); default: // we don't know about any other remote CertStore types return false; } }
Example 3
Source File: CertStoreHelper.java From j2objc with Apache License 2.0 | 6 votes |
static boolean isCausedByNetworkIssue(String type, CertStoreException cse) { switch (type) { // case "LDAP": case "SSLServer": try { CertStoreHelper csh = CertStoreHelper.getInstance(type); return csh.isCausedByNetworkIssue(cse); } catch (NoSuchAlgorithmException nsae) { return false; } case "URI": Throwable t = cse.getCause(); return (t != null && t instanceof IOException); default: // we don't know about any other remote CertStore types return false; } }
Example 4
Source File: CertStoreHelper.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
static boolean isCausedByNetworkIssue(String type, CertStoreException cse) { switch (type) { case "LDAP": case "SSLServer": try { CertStoreHelper csh = CertStoreHelper.getInstance(type); return csh.isCausedByNetworkIssue(cse); } catch (NoSuchAlgorithmException nsae) { return false; } case "URI": Throwable t = cse.getCause(); return (t != null && t instanceof IOException); default: // we don't know about any other remote CertStore types return false; } }
Example 5
Source File: LDAPCertStoreHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 6
Source File: SSLServerCertStoreHelper.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 7
Source File: LDAPCertStoreHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 8
Source File: SSLServerCertStoreHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 9
Source File: LDAPCertStoreHelper.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 10
Source File: LDAPCertStoreHelper.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 11
Source File: SSLServerCertStoreHelper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 12
Source File: SSLServerCertStoreHelper.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 13
Source File: SSLServerCertStoreHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 14
Source File: SSLServerCertStoreHelper.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 15
Source File: LDAPCertStoreHelper.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 16
Source File: LDAPCertStoreHelper.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 17
Source File: LDAPCertStoreHelper.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 18
Source File: SSLServerCertStoreHelper.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }
Example 19
Source File: LDAPCertStoreHelper.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && (t instanceof ServiceUnavailableException || t instanceof CommunicationException)); }
Example 20
Source File: SSLServerCertStoreHelper.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public boolean isCausedByNetworkIssue(CertStoreException e) { Throwable t = e.getCause(); return (t != null && t instanceof IOException); }