java.net.SecureCacheResponse Java Examples
The following examples show how to use
java.net.SecureCacheResponse.
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: AbstractDelegateHttpsURLConnection.java From openjsse with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #2
Source File: AbstractDelegateHttpsURLConnection.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #3
Source File: AbstractDelegateHttpsURLConnection.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #4
Source File: AbstractDelegateHttpsURLConnection.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #5
Source File: AbstractDelegateHttpsURLConnection.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #6
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #7
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #8
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #9
Source File: AbstractDelegateHttpsURLConnection.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #10
Source File: AbstractDelegateHttpsURLConnection.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #11
Source File: AbstractDelegateHttpsURLConnection.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse) .getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #12
Source File: AbstractDelegateHttpsURLConnection.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #13
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #14
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #15
Source File: AbstractDelegateHttpsURLConnection.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #16
Source File: AbstractDelegateHttpsURLConnection.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the server's certificate chain, or throws * SSLPeerUnverified Exception if * the server did not authenticate. */ public java.security.cert.Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getServerCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getServerCertificates ()); } }
Example #17
Source File: AbstractDelegateHttpsURLConnection.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #18
Source File: AbstractDelegateHttpsURLConnection.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the certificate chain the client sent to the * server, or null if the client did not authenticate. */ public java.security.cert.Certificate[] getLocalCertificates() { if (cachedResponse != null) { List<java.security.cert.Certificate> l = ((SecureCacheResponse)cachedResponse).getLocalCertificateChain(); if (l == null) { return null; } else { return l.toArray(new java.security.cert.Certificate[0]); } } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalCertificates ()); } }
Example #19
Source File: AbstractDelegateHttpsURLConnection.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns the cipher suite in use on this connection. */ public String getCipherSuite () { if (cachedResponse != null) { return ((SecureCacheResponse)cachedResponse).getCipherSuite(); } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return ((HttpsClient)http).getCipherSuite (); } }
Example #20
Source File: HttpsURLConnectionImpl.java From CordovaYoutubeVideoPlayer with MIT License | 5 votes |
@Override public Principal getLocalPrincipal() { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getLocalPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getLocalPrincipal(); } return null; }
Example #21
Source File: HttpsURLConnectionImpl.java From cordova-android-chromeview with Apache License 2.0 | 5 votes |
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getPeerPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getPeerPrincipal(); } return null; }
Example #22
Source File: AbstractDelegateHttpsURLConnection.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns the server's principal, or throws SSLPeerUnverifiedException * if the server did not authenticate. */ Principal getPeerPrincipal() throws SSLPeerUnverifiedException { if (cachedResponse != null) { return ((SecureCacheResponse)cachedResponse).getPeerPrincipal(); } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getPeerPrincipal()); } }
Example #23
Source File: AbstractDelegateHttpsURLConnection.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Returns the principal the client sent to the * server, or null if the client did not authenticate. */ Principal getLocalPrincipal() { if (cachedResponse != null) { return ((SecureCacheResponse)cachedResponse).getLocalPrincipal(); } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return (((HttpsClient)http).getLocalPrincipal()); } }
Example #24
Source File: AbstractDelegateHttpsURLConnection.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Returns the cipher suite in use on this connection. */ public String getCipherSuite () { if (cachedResponse != null) { return ((SecureCacheResponse)cachedResponse).getCipherSuite(); } if (http == null) { throw new IllegalStateException("connection not yet open"); } else { return ((HttpsClient)http).getCipherSuite (); } }
Example #25
Source File: HttpsURLConnectionImpl.java From crosswalk-cordova-android with Apache License 2.0 | 5 votes |
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getPeerPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getPeerPrincipal(); } return null; }
Example #26
Source File: HttpsURLConnectionImpl.java From phonegap-plugin-loading-spinner with Apache License 2.0 | 5 votes |
@Override public Principal getPeerPrincipal() throws SSLPeerUnverifiedException { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getPeerPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getPeerPrincipal(); } return null; }
Example #27
Source File: HttpsURLConnectionImpl.java From L.TileLayer.Cordova with MIT License | 5 votes |
@Override public Principal getLocalPrincipal() { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getLocalPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getLocalPrincipal(); } return null; }
Example #28
Source File: HttpsURLConnectionImpl.java From cordova-android-chromeview with Apache License 2.0 | 5 votes |
@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { List<Certificate> result = cacheResponse.getServerCertificateChain(); return result != null ? result.toArray(new Certificate[result.size()]) : null; } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getPeerCertificates(); } return null; }
Example #29
Source File: HttpsURLConnectionImpl.java From reader with MIT License | 5 votes |
@Override public Certificate[] getLocalCertificates() { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { List<Certificate> result = cacheResponse.getLocalCertificateChain(); return result != null ? result.toArray(new Certificate[result.size()]) : null; } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getLocalCertificates(); } return null; }
Example #30
Source File: HttpsURLConnectionImpl.java From phonegapbootcampsite with MIT License | 5 votes |
@Override public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { List<Certificate> result = cacheResponse.getServerCertificateChain(); return result != null ? result.toArray(new Certificate[result.size()]) : null; } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getPeerCertificates(); } return null; }