java.lang.Object java.net.CacheResponse java.net.SecureCacheResponse
Represents a cache response originally retrieved through secure means, such as TLS.
Constructor Summary | |
---|---|
SecureCacheResponse()
|
Method Summary | |
---|---|
abstract String |
getCipherSuite()
Returns the cipher suite in use on the original connection that retrieved the network resource. |
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. |
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<Certificate> |
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. |
Methods inherited from class java.net.CacheResponse |
---|
getBody, getHeaders |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecureCacheResponse()
Method Detail |
---|
public abstract String getCipherSuite()
public abstract List<Certificate> getLocalCertificateChain()
getLocalPrincipal()
public abstract List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
getPeerPrincipal()
public abstract Principal getPeerPrincipal() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
- if the peer was not verifiedgetServerCertificatePath()
,
getLocalPrincipal()
public abstract Principal getLocalPrincipal()
getLocalCertificatePath()
,
getPeerPrincipal()