Package Torello.Browser
Class Network.SignedExchangeSignature
- java.lang.Object
-
- Torello.Java.Additional.BaseType
-
- Torello.Browser.Network.SignedExchangeSignature
-
- Enclosing class:
- Network
public static class Network.SignedExchangeSignature extends BaseType
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
EXPERIMENTAL
Hi-Lited Source-Code:- View Here: Torello/Browser/Network.java
- Open New Browser-Tab: Torello/Browser/Network.java
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field String[]
certificates
The encoded certificates.String
certSha256
The hex string of signed exchange signature cert sha256.String
certUrl
Signed exchange signature cert Url.int
date
Signed exchange signature date.int
expires
Signed exchange signature expires.String
integrity
Signed exchange signature integrity.String
label
Signed exchange signature label.String
signature
The hex string of signed exchange signature.String
validityUrl
Signed exchange signature validity Url.
-
Constructor Summary
Constructors Constructor Description SignedExchangeSignature(String label, String signature, String integrity, String certUrl, String certSha256, String validityUrl, int date, int expires, String[] certificates)
ConstructorSignedExchangeSignature(JsonObject jo)
JSON Object Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
label
public final java.lang.String label
Signed exchange signature label.
-
signature
public final java.lang.String signature
The hex string of signed exchange signature.
-
integrity
public final java.lang.String integrity
Signed exchange signature integrity.
-
certUrl
public final java.lang.String certUrl
Signed exchange signature cert Url.
OPTIONAL
-
certSha256
public final java.lang.String certSha256
The hex string of signed exchange signature cert sha256.
OPTIONAL
-
validityUrl
public final java.lang.String validityUrl
Signed exchange signature validity Url.
-
date
public final int date
Signed exchange signature date.
-
expires
public final int expires
Signed exchange signature expires.
-
certificates
public final java.lang.String[] certificates
The encoded certificates.
OPTIONAL
-
-
Constructor Detail
-
SignedExchangeSignature
public SignedExchangeSignature(java.lang.String label, java.lang.String signature, java.lang.String integrity, java.lang.String certUrl, java.lang.String certSha256, java.lang.String validityUrl, int date, int expires, java.lang.String[] certificates)
Constructor- Parameters:
label
- Signed exchange signature label.signature
- The hex string of signed exchange signature.integrity
- Signed exchange signature integrity.certUrl
- Signed exchange signature cert Url.
OPTIONALcertSha256
- The hex string of signed exchange signature cert sha256.
OPTIONALvalidityUrl
- Signed exchange signature validity Url.date
- Signed exchange signature date.expires
- Signed exchange signature expires.certificates
- The encoded certificates.
OPTIONAL
-
SignedExchangeSignature
public SignedExchangeSignature(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'SignedExchangeSignature'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
-