Package Torello.Browser
Class Security.SecurityStateExplanation
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.Security.SecurityStateExplanation
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Security
public static class Security.SecurityStateExplanation extends BaseType implements java.io.Serializable
An explanation of an factor contributing to the security state.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/Security.java
- Open New Browser-Tab: Torello/Browser/Security.java
File Size: 6,207 Bytes Line Count: 137 '\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[]
certificate
Page certificate.String
description
Full text explanation of the factor.String
mixedContentType
The type of mixed content described by the explanation.String[]
recommendations
Recommendations to fix any issues.String
securityState
Security state representing the severity of the factor being explained.String
summary
Short phrase describing the type of factor.String
title
Title describing the type of factor.
-
Constructor Summary
Constructors Constructor Description SecurityStateExplanation(String securityState, String title, String summary, String description, String mixedContentType, String[] certificate, String[] recommendations)
ConstructorSecurityStateExplanation(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
Security state representing the severity of the factor being explained.
-
title
public final java.lang.String title
Title describing the type of factor.
-
summary
public final java.lang.String summary
Short phrase describing the type of factor.
-
description
public final java.lang.String description
Full text explanation of the factor.
-
mixedContentType
public final java.lang.String mixedContentType
The type of mixed content described by the explanation.
-
certificate
public final java.lang.String[] certificate
Page certificate.
-
recommendations
public final java.lang.String[] recommendations
Recommendations to fix any issues.
OPTIONAL
-
-
Constructor Detail
-
SecurityStateExplanation
public SecurityStateExplanation(java.lang.String securityState, java.lang.String title, java.lang.String summary, java.lang.String description, java.lang.String mixedContentType, java.lang.String[] certificate, java.lang.String[] recommendations)
Constructor- Parameters:
securityState
- Security state representing the severity of the factor being explained.title
- Title describing the type of factor.summary
- Short phrase describing the type of factor.description
- Full text explanation of the factor.mixedContentType
- The type of mixed content described by the explanation.certificate
- Page certificate.recommendations
- Recommendations to fix any issues.
OPTIONAL
-
SecurityStateExplanation
public SecurityStateExplanation(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'SecurityStateExplanation'
.
-
-
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; SecurityStateExplanation o = (SecurityStateExplanation) other; return Objects.equals(this.securityState, o.securityState) && Objects.equals(this.title, o.title) && Objects.equals(this.summary, o.summary) && Objects.equals(this.description, o.description) && Objects.equals(this.mixedContentType, o.mixedContentType) && Arrays.deepEquals(this.certificate, o.certificate) && Arrays.deepEquals(this.recommendations, o.recommendations);
-
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) + Objects.hashCode(this.title) + Objects.hashCode(this.summary) + Objects.hashCode(this.description) + Objects.hashCode(this.mixedContentType) + Arrays.deepHashCode(this.certificate) + Arrays.deepHashCode(this.recommendations);
-
-