public abstract class SecureCacheResponse 
  extends CacheResponse 
| java.lang.Object | ||
| ↳ | java.net.CacheResponse | |
| ↳ | java.net.SecureCacheResponse | |
表示最初通过安全手段(如TLS)检索到的缓存响应。
| Public constructors | |
|---|---|
|  SecureCacheResponse()  | |
| Public methods | |
|---|---|
|  abstract String |  getCipherSuite() 返回检索网络资源的原始连接上正在使用的密码套件。 | 
|  abstract List<Certificate> |  getLocalCertificateChain() 返回在检索网络资源的原始连接握手期间发送到服务器的证书链。 | 
|  abstract Principal |  getLocalPrincipal() 返回在检索网络资源的原始连接中握手期间发送到服务器的主体。 | 
|  abstract Principal |  getPeerPrincipal() 返回在检索网络资源的原始连接期间作为定义会话的一部分而建立的服务器主体。 | 
|  abstract List<Certificate> |  getServerCertificateChain() 从缓存中返回服务器的证书链,该证书链是作为检索网络资源的原始连接中定义会话的一部分而建立的。 | 
| Inherited methods | |
|---|---|
|  From class  java.net.CacheResponse  | |
|  From class  java.lang.Object  | |
String getCipherSuite ()
返回检索网络资源的原始连接上正在使用的密码套件。
| Returns | |
|---|---|
| String | a string representing the cipher suite | 
List<Certificate> getLocalCertificateChain ()
返回在检索网络资源的原始连接握手期间发送到服务器的证书链。 注意:仅当使用基于证书的密码套件时,此方法才有用。
| Returns | |
|---|---|
| List<Certificate> | an immutable List of Certificate representing the certificate chain that was sent to the server. If no certificate chain was sent, null will be returned. | 
也可以看看:
Principal getLocalPrincipal ()
返回在检索网络资源的原始连接中握手期间发送到服务器的主体。
| Returns | |
|---|---|
| Principal | the principal sent to the server. Returns an X500Principal of the end-entity certificate for X509-based cipher suites, and KerberosPrincipal for Kerberos cipher suites. If no principal was sent, then null is returned. | 
Principal getPeerPrincipal ()
返回在检索网络资源的原始连接期间作为定义会话的一部分而建立的服务器主体。
| Returns | |
|---|---|
| Principal | the server's principal. Returns an X500Principal of the end-entity certiticate for X509-based cipher suites, and KerberosPrincipal for Kerberos cipher suites. | 
| Throws | |
|---|---|
| SSLPeerUnverifiedException | if the peer was not verified. | 
List<Certificate> getServerCertificateChain ()
从缓存中返回服务器的证书链,该证书链是作为检索网络资源的原始连接中定义会话的一部分而建立的。 注意:只有在使用基于证书的密码套件时才能使用此方法; 将它与非基于证书的密码套件(如Kerberos)一起使用时,将引发SSLPeerUnverifiedException。
| Returns | |
|---|---|
| List<Certificate> | an immutable List of Certificate representing the server's certificate chain. | 
| Throws | |
|---|---|
| SSLPeerUnverifiedException | if the peer is not verified. | 
也可以看看: