[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/kotlin/java/net/SecureCacheResponse [Back]  [Original]

SecureCacheResponse  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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.

See Also

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.

See Also

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.

See Also

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.

See Also

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page