-
public final class SignedExchangeHeaderInformation about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
-
-
Field Summary
Fields Modifier and Type Field Description private final StringrequestUrlprivate final IntegerresponseCodeprivate final JsonElementresponseHeadersprivate final List<SignedExchangeSignature>signaturesprivate final StringheaderIntegrity
-
Constructor Summary
Constructors Constructor Description SignedExchangeHeader(String requestUrl, Integer responseCode, JsonElement responseHeaders, List<SignedExchangeSignature> signatures, String headerIntegrity)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Integercomponent2()final JsonElementcomponent3()final List<SignedExchangeSignature>component4()final Stringcomponent5()final SignedExchangeHeadercopy(String requestUrl, Integer responseCode, JsonElement responseHeaders, List<SignedExchangeSignature> signatures, String headerIntegrity)final StringgetRequestUrl()Signed exchange request URL. final IntegergetResponseCode()Signed exchange response code. final JsonElementgetResponseHeaders()Signed exchange response headers. final List<SignedExchangeSignature>getSignatures()Signed exchange response signature. final StringgetHeaderIntegrity()Signed exchange header integrity hash in the form of "sha256-<base64-hash-value>". -
-
Constructor Detail
-
SignedExchangeHeader
SignedExchangeHeader(String requestUrl, Integer responseCode, JsonElement responseHeaders, List<SignedExchangeSignature> signatures, String headerIntegrity)
-
-
Method Detail
-
component1
final String component1()
-
component2
final Integer component2()
-
component3
final JsonElement component3()
-
component4
final List<SignedExchangeSignature> component4()
-
component5
final String component5()
-
copy
final SignedExchangeHeader copy(String requestUrl, Integer responseCode, JsonElement responseHeaders, List<SignedExchangeSignature> signatures, String headerIntegrity)
-
getRequestUrl
final String getRequestUrl()
Signed exchange request URL.
-
getResponseCode
final Integer getResponseCode()
Signed exchange response code.
-
getResponseHeaders
final JsonElement getResponseHeaders()
Signed exchange response headers.
-
getSignatures
final List<SignedExchangeSignature> getSignatures()
Signed exchange response signature.
-
getHeaderIntegrity
final String getHeaderIntegrity()
Signed exchange header integrity hash in the form of "sha256-<base64-hash-value>".
-
-
-
-