Partager via


ServicePrincipalProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.ServicePrincipalProperties

Implements

public final class ServicePrincipalProperties
implements JsonSerializable<ServicePrincipalProperties>

Details of the service principal.

Constructor Summary

Constructor Description
ServicePrincipalProperties()

Creates an instance of ServicePrincipalProperties class.

Method Summary

Modifier and Type Method and Description
String applicationId()

Get the applicationId property: Application ID of service principal.

static ServicePrincipalProperties fromJson(JsonReader jsonReader)

Reads an instance of ServicePrincipalProperties from the JsonReader.

String secret()

Get the secret property: A secret string that the application uses to prove its identity, also can be referred to as application password (write only).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServicePrincipalProperties withApplicationId(String applicationId)

Set the applicationId property: Application ID of service principal.

ServicePrincipalProperties withSecret(String secret)

Set the secret property: A secret string that the application uses to prove its identity, also can be referred to as application password (write only).

Methods inherited from java.lang.Object

Constructor Details

ServicePrincipalProperties

public ServicePrincipalProperties()

Creates an instance of ServicePrincipalProperties class.

Method Details

applicationId

public String applicationId()

Get the applicationId property: Application ID of service principal.

Returns:

the applicationId value.

fromJson

public static ServicePrincipalProperties fromJson(JsonReader jsonReader)

Reads an instance of ServicePrincipalProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServicePrincipalProperties 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 ServicePrincipalProperties.

secret

public String secret()

Get the secret property: A secret string that the application uses to prove its identity, also can be referred to as application password (write only).

Returns:

the secret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withApplicationId

public ServicePrincipalProperties withApplicationId(String applicationId)

Set the applicationId property: Application ID of service principal.

Parameters:

applicationId - the applicationId value to set.

Returns:

the ServicePrincipalProperties object itself.

withSecret

public ServicePrincipalProperties withSecret(String secret)

Set the secret property: A secret string that the application uses to prove its identity, also can be referred to as application password (write only).

Parameters:

secret - the secret value to set.

Returns:

the ServicePrincipalProperties object itself.

Applies to