Package Torello.Browser
Class Network.SignedExchangeSignature
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Network.SignedExchangeSignature
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Network
public static class Network.SignedExchangeSignature extends BaseType implements java.io.Serializable
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Network.java
- Open New Browser-Tab: Torello/Browser/Network.java
File Size: 6,313 Bytes Line Count: 159 '\n' Characters Found
-
-
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
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
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...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; SignedExchangeSignature o = (SignedExchangeSignature) other; return Objects.equals(this.label, o.label) && Objects.equals(this.signature, o.signature) && Objects.equals(this.integrity, o.integrity) && Objects.equals(this.certUrl, o.certUrl) && Objects.equals(this.certSha256, o.certSha256) && Objects.equals(this.validityUrl, o.validityUrl) && (this.date == o.date) && (this.expires == o.expires) && Arrays.deepEquals(this.certificates, o.certificates);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.label) + Objects.hashCode(this.signature) + Objects.hashCode(this.integrity) + Objects.hashCode(this.certUrl) + Objects.hashCode(this.certSha256) + Objects.hashCode(this.validityUrl) + this.date + this.expires + Arrays.deepHashCode(this.certificates);
-
-