Name

SecureCacheResponse

Synopsis

This subclass of CacheResponse represents a cached network resource that was retreived through a secure protocol such as HTTPS. Its methods return certificates and other details about the secure transfer. See also ResponseCache. This class is not intended for casual users of the java.net package.

java.net.SecureCacheResponse

Figure 12-17. java.net.SecureCacheResponse

public abstract class SecureCacheResponse extends CacheResponse {
// Public Constructors
     public SecureCacheResponse( );  
// Public Instance Methods
     public abstract String getCipherSuite( );  
     public abstract java.util.List<java.security.cert.Certificate> 
     getLocalCertificateChain( );  
     public abstract java.security.Principal getLocalPrincipal( );  
     public abstract java.security.Principal getPeerPrincipal( ) 
     throws javax.net.ssl.SSLPeerUnverifiedException;  
     public abstract java.util.List<java.security.cert.Certificate> 
     getServerCertificateChain( ) 
     throws javax.net.ssl.SSLPeerUnverifiedException;  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.