public abstract class SecureCacheResponse extends CacheResponse
Constructor | Description |
---|---|
SecureCacheResponse() |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
abstract String |
getCipherSuite() |
Returns the cipher suite in use on the original connection that retrieved the network resource. |
abstract List |
getLocalCertificateChain() |
Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource. |
abstract Principal |
getLocalPrincipal() |
Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource. |
abstract Principal |
getPeerPrincipal() |
Returns the server's principal which was established as part of defining the session during the original connection that retrieved the network resource. |
abstract List |
getServerCertificateChain() |
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. |
Optional |
getSSLSession() |
Returns an Optional containing the SSLSession in use on the original connection that retrieved the network resource. |
getBody, getHeaders
public SecureCacheResponse()
public abstract String getCipherSuite()
public abstract List<Certificate> getLocalCertificateChain()
public abstract List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
- if the peer is not verified.public abstract Principal getPeerPrincipal() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
- if the peer was not verified.public abstract Principal getLocalPrincipal()
public Optional<SSLSession> getSSLSession()
Optional
containing the SSLSession
in use on the original connection that retrieved the network resource. Returns an empty Optional
if the underlying implementation does not support this method.Optional
. Subclasses should override this method with an appropriate implementation since an application may need to access additional parameters associated with the SSL session.Optional
containing the SSLSession
in use on the original connection
© 1993, 2023, 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.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/SecureCacheResponse.html