# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# SecureCacheResponse

`public abstract class SecureCacheResponse`
`` `extends CacheResponse` ``

java.lang.Object
↳ | java.net.CacheResponse
| ↳ | java.net.SecureCacheResponse

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

## Summary

### Public constructors
`SecureCacheResponse()`

### Public methods
`abstract String` | `getCipherSuite()` Returns the cipher suite in use on the original connection that retrieved the network resource.
`abstract List<Certificate>` | `getLocalCertificateChain()` Returns the certificate chain that were sent to the server during handshaking of the original connection that retrieved the network resource.
`abstract Principal` | `getLocalPrincipal()` Returns the principal that was sent to the server during handshaking in the original connection that retrieved the network resource.
`abstract Principal` | `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<Certificate>` | `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.

### Inherited methods
From class `java.net.CacheResponse`
`abstract InputStream` | `getBody()` Returns the response body as an InputStream.
`abstract Map<String, List<String>>` | `getHeaders()` Returns the response headers as a Map.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### SecureCacheResponse

    public SecureCacheResponse ()

## Public methods

### getCipherSuite

    public abstract String getCipherSuite ()

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

Returns
`String` | a string representing the cipher suite

### getLocalCertificateChain

    public abstract List<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
`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.

See also:

- `getLocalPrincipal()`

### 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
`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.

See also:

- `getLocalCertificateChain()`
- `getPeerPrincipal()`

### getPeerPrincipal

    public abstract Principal getPeerPrincipal ()

Returns the server's principal which was established as part of defining the session during the original connection that retrieved the network resource.

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.

See also:

- `getServerCertificateChain()`
- `getLocalPrincipal()`

### getServerCertificateChain

    public abstract List<Certificate> 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. 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
`List<Certificate>` | an immutable List of Certificate representing the server's certificate chain.

Throws
`SSLPeerUnverifiedException` | if the peer is not verified.

See also:

- `getPeerPrincipal()`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*