public abstract class SecureCacheResponse extends CacheResponse
Represents a cache response originally retrieved through secure means, such as TLS.
public SecureCacheResponse()
public abstract String getCipherSuite()
Returns the cipher suite in use on the original connection that retrieved the network resource.
public abstract List<Certificate> getLocalCertificateChain()
Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource. Note: This method is useful only when using certificate-based cipher suites.
getLocalPrincipal()
public abstract List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException
Returns the server's certificate chain, which was established as part of defining the session in the original connection that retrieved the network resource, from cache. Note: This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an SSLPeerUnverifiedException.
SSLPeerUnverifiedException
- if the peer is not verified.getPeerPrincipal()
public abstract Principal getPeerPrincipal() throws SSLPeerUnverifiedException
Returns the server's principal which was established as part of defining the session during the original connection that retrieved the network resource.
SSLPeerUnverifiedException
- if the peer was not verified.getServerCertificateChain()
, getLocalPrincipal()
public abstract Principal getLocalPrincipal()
Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.
getLocalCertificateChain()
, getPeerPrincipal()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.