Security Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.Security

Implements

public final class Security
implements JsonSerializable<Security>

Grafana security settings.

Constructor Summary

Constructor Description
Security()

Creates an instance of Security class.

Method Summary

Modifier and Type Method and Description
Boolean csrfAlwaysCheck()

Get the csrfAlwaysCheck property: Set to true to execute the CSRF check even if the login cookie is not in a request (default false).

static Security fromJson(JsonReader jsonReader)

Reads an instance of Security from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Security withCsrfAlwaysCheck(Boolean csrfAlwaysCheck)

Set the csrfAlwaysCheck property: Set to true to execute the CSRF check even if the login cookie is not in a request (default false).

Methods inherited from java.lang.Object

Constructor Details

Security

public Security()

Creates an instance of Security class.

Method Details

csrfAlwaysCheck

public Boolean csrfAlwaysCheck()

Get the csrfAlwaysCheck property: Set to true to execute the CSRF check even if the login cookie is not in a request (default false).

Returns:

the csrfAlwaysCheck value.

fromJson

public static Security fromJson(JsonReader jsonReader)

Reads an instance of Security from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Security if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Security.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withCsrfAlwaysCheck

public Security withCsrfAlwaysCheck(Boolean csrfAlwaysCheck)

Set the csrfAlwaysCheck property: Set to true to execute the CSRF check even if the login cookie is not in a request (default false).

Parameters:

csrfAlwaysCheck - the csrfAlwaysCheck value to set.

Returns:

the Security object itself.

Applies to