All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.testsmith.cdt.protocol.events.security.SecurityStateChanged Maven / Gradle / Ivy

The newest version!
package com.github.testsmith.cdt.protocol.events.security;

/*-
 * #%L
 * cdt-java-client
 * %%
 * Copyright (C) 2018 - 2024 Kenan Klisura
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import com.github.testsmith.cdt.protocol.support.annotations.Optional;
import com.github.testsmith.cdt.protocol.types.security.InsecureContentStatus;
import com.github.testsmith.cdt.protocol.types.security.SecurityState;
import com.github.testsmith.cdt.protocol.types.security.SecurityStateExplanation;
import java.util.List;

/**
 * The security state of the page changed.
 *
 * @author roy
 * @version $Id: $Id
 */
public class SecurityStateChanged {

  private SecurityState securityState;

  @Deprecated private Boolean schemeIsCryptographic;

  private List explanations;

  @Deprecated private InsecureContentStatus insecureContentStatus;

  @Optional private String summary;

  /**
   * Security state.
   *
   * @return a {@link com.github.testsmith.cdt.protocol.types.security.SecurityState} object
   */
  public SecurityState getSecurityState() {
    return securityState;
  }

  /**
   * Security state.
   *
   * @param securityState a {@link com.github.testsmith.cdt.protocol.types.security.SecurityState}
   *     object
   */
  public void setSecurityState(SecurityState securityState) {
    this.securityState = securityState;
  }

  /**
   * True if the page was loaded over cryptographic transport such as HTTPS.
   *
   * @return a {@link java.lang.Boolean} object
   */
  public Boolean getSchemeIsCryptographic() {
    return schemeIsCryptographic;
  }

  /**
   * True if the page was loaded over cryptographic transport such as HTTPS.
   *
   * @param schemeIsCryptographic a {@link java.lang.Boolean} object
   */
  public void setSchemeIsCryptographic(Boolean schemeIsCryptographic) {
    this.schemeIsCryptographic = schemeIsCryptographic;
  }

  /**
   * List of explanations for the security state. If the overall security state is `insecure` or
   * `warning`, at least one corresponding explanation should be included.
   *
   * @return a {@link java.util.List} object
   */
  public List getExplanations() {
    return explanations;
  }

  /**
   * List of explanations for the security state. If the overall security state is `insecure` or
   * `warning`, at least one corresponding explanation should be included.
   *
   * @param explanations a {@link java.util.List} object
   */
  public void setExplanations(List explanations) {
    this.explanations = explanations;
  }

  /**
   * Information about insecure content on the page.
   *
   * @return a {@link com.github.testsmith.cdt.protocol.types.security.InsecureContentStatus} object
   */
  public InsecureContentStatus getInsecureContentStatus() {
    return insecureContentStatus;
  }

  /**
   * Information about insecure content on the page.
   *
   * @param insecureContentStatus a {@link
   *     com.github.testsmith.cdt.protocol.types.security.InsecureContentStatus} object
   */
  public void setInsecureContentStatus(InsecureContentStatus insecureContentStatus) {
    this.insecureContentStatus = insecureContentStatus;
  }

  /**
   * Overrides user-visible description of the state.
   *
   * @return a {@link java.lang.String} object
   */
  public String getSummary() {
    return summary;
  }

  /**
   * Overrides user-visible description of the state.
   *
   * @param summary a {@link java.lang.String} object
   */
  public void setSummary(String summary) {
    this.summary = summary;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy