Added in API level 1

SecureCacheResponse

abstract class SecureCacheResponse : CacheResponse
kotlin.Any
   ↳ java.net.CacheResponse
   ↳ java.net.SecureCacheResponse

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

Summary

Public constructors

Public methods
abstract String!

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

abstract MutableList<Certificate!>!

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 MutableList<Certificate!>!

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 functions

Public constructors

SecureCacheResponse

Added in API level 1
SecureCacheResponse()

Public methods

getCipherSuite

Added in API level 1
abstract fun getCipherSuite(): String!

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

Return
String! a string representing the cipher suite

getLocalCertificateChain

Added in API level 1
abstract fun getLocalCertificateChain(): MutableList<Certificate!>!

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.

Return
MutableList<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.

getLocalPrincipal

Added in API level 1
abstract fun getLocalPrincipal(): Principal!

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

Return
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.

getPeerPrincipal

Added in API level 1
abstract fun getPeerPrincipal(): Principal!

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

Return
Principal! the server's principal. Returns an X500Principal of the end-entity certiticate for X509-based cipher suites, and KerberosPrincipal for Kerberos cipher suites.
Exceptions
javax.net.ssl.SSLPeerUnverifiedException if the peer was not verified.

getServerCertificateChain

Added in API level 1
abstract fun getServerCertificateChain(): MutableList<Certificate!>!

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.

Return
MutableList<Certificate!>! an immutable List of Certificate representing the server's certificate chain.
Exceptions
javax.net.ssl.SSLPeerUnverifiedException if the peer is not verified.