Language

ExtendedSSLSession.StatusResponses Property

Definition

Returns a List containing DER-encoded OCSP responses (using the ASN.

public virtual System.Collections.Generic.IList<byte[]>? StatusResponses { [Android.Runtime.Register("getStatusResponses", "()Ljava/util/List;", "GetGetStatusResponsesHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getStatusResponses", "()Ljava/util/List;", "GetGetStatusResponsesHandler", ApiSince=37)>]
member this.StatusResponses : System.Collections.Generic.IList<byte[]>

Property Value

IList<Byte[]>

a non-null unmodifiable list of byte arrays, each entry containing a DER-encoded OCSP response (using the ASN.1 type OCSPResponse defined in RFC 6960). The order of the responses must match the order of the certificates presented by the server in its Certificate message (See SSLSession#getLocalCertificates() for server mode, and SSLSession#getPeerCertificates() for client mode). It is possible that fewer response entries may be returned than the number of presented certificates. If an entry in the list is a zero-length byte array, it should be treated by the caller as if the OCSP entry for the corresponding certificate is missing. The returned list may be empty if no OCSP responses were presented during handshaking or if OCSP stapling is not supported by either endpoint for this handshake.

Attributes

Remarks

Returns a List containing DER-encoded OCSP responses (using the ASN.1 type OCSPResponse defined in RFC 6960) for the client to verify status of the server's certificate during handshaking. This method only applies to certificate-based server authentication. An X509ExtendedTrustManager will use the returned value for server certificate validation.

Java reference for javax.net.ssl.ExtendedSSLSession.getStatusResponses.

Applies to