ServicePrincipalProperties Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. ServicePrincipalProperties
- com.
Implements
public final class ServicePrincipalProperties
implements JsonSerializable<ServicePrincipalProperties>
Details of the service principal.
Constructor Summary
| Constructor | Description |
|---|---|
| ServicePrincipalProperties() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
applicationId()
Get the application |
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
| 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). |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Service |
withApplicationId(String applicationId)
Set the application |
|
Service |
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:
fromJson
public static ServicePrincipalProperties fromJson(JsonReader jsonReader)
Reads an instance of ServicePrincipalProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withApplicationId
public ServicePrincipalProperties withApplicationId(String applicationId)
Set the applicationId property: Application ID of service principal.
Parameters:
Returns:
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:
Returns: