This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.net
class SecureCacheResponse

java.lang.Object extended by java.net.CacheResponse extended by java.net.SecureCacheResponse

public abstract class SecureCacheResponse
extends CacheResponse

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


Constructor Summary

          
 
Method Summary
abstract String

          Returns the cipher suite in use on the original connection that retrieved the network resource.
abstract List

          Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource.
abstract Principal

          Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.
abstract Principal

          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

          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

SecureCacheResponse

public SecureCacheResponse()
Method Detail

getCipherSuite

public abstract String getCipherSuite()
Returns the cipher suite in use on the original connection that retrieved the network resource.

Returns:
a string representing the cipher suite

getLocalCertificateChain

public abstract List getLocalCertificateChain()
Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource. Note: This method is useful only when using certificate-based cipher suites.

Returns:
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.

getLocalPrincipal

public abstract Principal getLocalPrincipal()
Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.

Returns:
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.

getPeerPrincipal

public abstract Principal getPeerPrincipal()
                                    throws SSLPeerUnverifiedException
Returns the server's principal which was established as part of defining the session during the original connection that retrieved the network resource.

Returns:
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.

getServerCertificateChain

public abstract List getServerCertificateChain()
                                        throws SSLPeerUnverifiedException
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. Note: This method can be used only when using certificate-based cipher suites; using it with non-certificate-based cipher suites, such as Kerberos, will throw an SSLPeerUnverifiedException.

Returns:
an immutable List of Certificate representing the server's certificate chain.
Throws:
SSLPeerUnverifiedException - if the peer is not verified.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.