SecureCacheResponse class in Java

java.net.SecureCacheResponse

Represents a cache response originally retrieved through secure means, such as TLS.

Some methods of the SecureCacheResponse class

getCipherSuite(): This method returns the cipher suite in use on the original connection that retrieved the network resource.

getLocalCertificateChain(): This method returns the certificate chain that was sent to the server during the handshaking of the original connection that retrieved the network resource.

getLocalPrincipal(): This method returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.

getPeerPrincipal(): This method returns the server's principal which was established as part of defining the session during the original connection that retrieved the network resource.

getServerCertificateChain(): This method 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 the cache.

getSSLSession(): This method returns an Optional containing the SSLSession in use on the original connection that retrieved the network resource.

No comments:

Post a Comment