java.net
Class SecureCacheResponse

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.net.CacheResponse sample code for java.net.CacheResponse definition code for java.net.CacheResponse 
      extended by java.net.SecureCacheResponse

public abstract class SecureCacheResponse
extends CacheResponse sample code for java.net.CacheResponse definition code for java.net.CacheResponse

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

Since:
1.5

Constructor Summary
SecureCacheResponse sample code for java.net.SecureCacheResponse.SecureCacheResponse() definition code for java.net.SecureCacheResponse.SecureCacheResponse() ()
           
 
Method Summary
abstract  String sample code for java.lang.String definition code for java.lang.String getCipherSuite sample code for java.net.SecureCacheResponse.getCipherSuite() definition code for java.net.SecureCacheResponse.getCipherSuite() ()
          Returns the cipher suite in use on the original connection that retrieved the network resource.
abstract  List sample code for java.util.List definition code for java.util.List <Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate > getLocalCertificateChain sample code for java.net.SecureCacheResponse.getLocalCertificateChain() definition code for java.net.SecureCacheResponse.getLocalCertificateChain() ()
          Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource.
abstract  Principal sample code for java.security.Principal definition code for java.security.Principal getLocalPrincipal sample code for java.net.SecureCacheResponse.getLocalPrincipal() definition code for java.net.SecureCacheResponse.getLocalPrincipal() ()
          Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.
abstract  Principal sample code for java.security.Principal definition code for java.security.Principal getPeerPrincipal sample code for java.net.SecureCacheResponse.getPeerPrincipal() definition code for java.net.SecureCacheResponse.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 sample code for java.util.List definition code for java.util.List <Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate > getServerCertificateChain sample code for java.net.SecureCacheResponse.getServerCertificateChain() definition code for java.net.SecureCacheResponse.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 sample code for java.net.CacheResponse definition code for java.net.CacheResponse
getBody sample code for java.net.CacheResponse.getBody() definition code for java.net.CacheResponse.getBody() , getHeaders sample code for java.net.CacheResponse.getHeaders() definition code for java.net.CacheResponse.getHeaders()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

SecureCacheResponse sample code for java.net.SecureCacheResponse() definition code for java.net.SecureCacheResponse()

public SecureCacheResponse()
Method Detail

getCipherSuite sample code for java.net.SecureCacheResponse.getCipherSuite() definition code for java.net.SecureCacheResponse.getCipherSuite()

public abstract String sample code for java.lang.String definition code for java.lang.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 sample code for java.net.SecureCacheResponse.getLocalCertificateChain() definition code for java.net.SecureCacheResponse.getLocalCertificateChain()

public abstract List sample code for java.util.List definition code for java.util.List <Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate > 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.
See Also:
getLocalPrincipal() sample code for java.net.SecureCacheResponse.getLocalPrincipal() definition code for java.net.SecureCacheResponse.getLocalPrincipal()

getServerCertificateChain sample code for java.net.SecureCacheResponse.getServerCertificateChain() definition code for java.net.SecureCacheResponse.getServerCertificateChain()

public abstract List sample code for java.util.List definition code for java.util.List <Certificate sample code for java.security.cert.Certificate definition code for java.security.cert.Certificate > getServerCertificateChain()
                                                     throws javax.net.ssl.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:
javax.net.ssl.SSLPeerUnverifiedException - if the peer is not verified.
See Also:
getPeerPrincipal() sample code for java.net.SecureCacheResponse.getPeerPrincipal() definition code for java.net.SecureCacheResponse.getPeerPrincipal()

getPeerPrincipal sample code for java.net.SecureCacheResponse.getPeerPrincipal() definition code for java.net.SecureCacheResponse.getPeerPrincipal()

public abstract Principal sample code for java.security.Principal definition code for java.security.Principal  getPeerPrincipal()
                                    throws javax.net.ssl.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:
javax.net.ssl.SSLPeerUnverifiedException - if the peer was not verified.
See Also:
getServerCertificateChain() sample code for java.net.SecureCacheResponse.getServerCertificateChain() definition code for java.net.SecureCacheResponse.getServerCertificateChain() , getLocalPrincipal() sample code for java.net.SecureCacheResponse.getLocalPrincipal() definition code for java.net.SecureCacheResponse.getLocalPrincipal()

getLocalPrincipal sample code for java.net.SecureCacheResponse.getLocalPrincipal() definition code for java.net.SecureCacheResponse.getLocalPrincipal()

public abstract Principal sample code for java.security.Principal definition code for java.security.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.
See Also:
getLocalCertificateChain() sample code for java.net.SecureCacheResponse.getLocalCertificateChain() definition code for java.net.SecureCacheResponse.getLocalCertificateChain() , getPeerPrincipal() sample code for java.net.SecureCacheResponse.getPeerPrincipal() definition code for java.net.SecureCacheResponse.getPeerPrincipal()