Package Torello.Browser
Class Security.VisibleSecurityState
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Security.VisibleSecurityState
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Security
public static class Security.VisibleSecurityState extends BaseType implements java.io.Serializable
Security state information about the page.
EXPERIMENTAL- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Security.java
- Open New Browser-Tab: Torello/Browser/Security.java
File Size: 4,939 Bytes Line Count: 111 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Security.CertificateSecurityState
certificateSecurityState
Security state details about the page certificate.Security.SafetyTipInfo
safetyTipInfo
The type of Safety Tip triggered on the page.String
securityState
The security level of the page.String[]
securityStateIssueIds
Array of security state issues ids.
-
Constructor Summary
Constructors Constructor Description VisibleSecurityState(String securityState, Security.CertificateSecurityState certificateSecurityState, Security.SafetyTipInfo safetyTipInfo, String[] securityStateIssueIds)
ConstructorVisibleSecurityState(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
-
securityState
public final java.lang.String securityState
The security level of the page.
-
certificateSecurityState
public final Security.CertificateSecurityState certificateSecurityState
Security state details about the page certificate.
OPTIONAL
-
safetyTipInfo
public final Security.SafetyTipInfo safetyTipInfo
The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.
OPTIONAL
-
securityStateIssueIds
public final java.lang.String[] securityStateIssueIds
Array of security state issues ids.
-
-
Constructor Detail
-
VisibleSecurityState
public VisibleSecurityState (java.lang.String securityState, Security.CertificateSecurityState certificateSecurityState, Security.SafetyTipInfo safetyTipInfo, java.lang.String[] securityStateIssueIds)
Constructor- Parameters:
securityState
- The security level of the page.certificateSecurityState
- Security state details about the page certificate.
OPTIONALsafetyTipInfo
- The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.
OPTIONALsecurityStateIssueIds
- Array of security state issues ids.
-
VisibleSecurityState
public VisibleSecurityState(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'VisibleSecurityState'
.
-
-
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; VisibleSecurityState o = (VisibleSecurityState) other; return Objects.equals(this.securityState, o.securityState) && Objects.equals(this.certificateSecurityState, o.certificateSecurityState) && Objects.equals(this.safetyTipInfo, o.safetyTipInfo) && Arrays.deepEquals(this.securityStateIssueIds, o.securityStateIssueIds);
-
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.securityState) + this.certificateSecurityState.hashCode() + this.safetyTipInfo.hashCode() + Arrays.deepHashCode(this.securityStateIssueIds);
-
-