- java.lang.Object
 -  
      
- java.net.CacheResponse
 -  
        
- java.net.SecureCacheResponse
 
 
 
-  
       
public abstract class SecureCacheResponse extends CacheResponse
表示最初通过安全方式(如TLS)检索的缓存响应。- 从以下版本开始:
 - 1.5
 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 SecureCacheResponse() 
-  
             
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 abstract StringgetCipherSuite()返回在检索网络资源的原始连接上使用的密码套件。abstract List<Certificate>getLocalCertificateChain()返回在检索网络资源的原始连接的握手期间发送到服务器的证书链。abstract PrincipalgetLocalPrincipal()返回在检索网络资源的原始连接中握手期间发送到服务器的主体。abstract PrincipalgetPeerPrincipal()返回服务器的主体,该主体是在检索网络资源的原始连接期间定义会话的一部分。abstract List<Certificate>getServerCertificateChain()返回服务器的证书链,该证书链是作为在缓存中检索网络资源的原始连接中定义会话的一部分而建立的。-  
               
声明方法的类 java.net.CacheResponse
getBody, getHeaders 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
方法详细信息
-  
getCipherSuite
public abstract String getCipherSuite()
返回在检索网络资源的原始连接上使用的密码套件。- 结果
 - 表示密码套件的字符串
 
 
-  
getLocalCertificateChain
public abstract List<Certificate> getLocalCertificateChain()
返回在检索网络资源的原始连接的握手期间发送到服务器的证书链。 注意:此方法仅在使用基于证书的密码套件时才有用。- 结果
 - 表示发送到服务器的证书链的证书的不可变列表。 如果未发送证书链,则返回null。
 - 另请参见:
 -  
              
getLocalPrincipal() 
 
-  
getServerCertificateChain
public abstract List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException
返回服务器的证书链,该证书链是作为在缓存中检索网络资源的原始连接中定义会话的一部分而建立的。 注意:此方法仅在使用基于证书的密码套件时使用; 将它与非基于证书的密码套件(如Kerberos)一起使用会抛出SSLPeerUnverifiedException。- 结果
 - 表示服务器证书链的不可变证书列表。
 - 异常
 -  
              
SSLPeerUnverifiedException- 如果未验证对等方。 - 另请参见:
 -  
              
getPeerPrincipal() 
 
-  
getPeerPrincipal
public abstract Principal getPeerPrincipal() throws SSLPeerUnverifiedException
返回服务器的主体,该主体是在检索网络资源的原始连接期间定义会话的一部分。- 结果
 - 服务器的主体。 返回基于X509的密码套件的终端实体certiticate的X500Principal,以及Kerberos密码套件的KerberosPrincipal。
 - 异常
 -  
              
SSLPeerUnverifiedException- 如果未验证对等方。 - 另请参见:
 -  
              
getServerCertificateChain(),getLocalPrincipal() 
 
-  
getLocalPrincipal
public abstract Principal getLocalPrincipal()
返回在检索网络资源的原始连接中握手期间发送到服务器的主体。- 结果
 - 委托人发送到服务器。 返回基于X509的密码套件的终端实体证书的X500Principal,以及Kerberos密码套件的KerberosPrincipal。 如果没有发送主体,则返回null。
 - 另请参见:
 -  
              
getLocalCertificateChain(),getPeerPrincipal() 
 
 -  
 
 -