Class ServicePrincipalProperties
java.lang.Object
com.azure.resourcemanager.security.models.ServicePrincipalProperties
Details of the service principal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the applicationId property: Application ID of service principal.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).void
validate()
Validates the instance.withApplicationId
(String applicationId) Set the applicationId property: Application ID of service principal.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).
-
Constructor Details
-
ServicePrincipalProperties
public ServicePrincipalProperties()
-
-
Method Details
-
applicationId
Get the applicationId property: Application ID of service principal.- Returns:
- the applicationId value.
-
withApplicationId
Set the applicationId property: Application ID of service principal.- Parameters:
applicationId
- the applicationId value to set.- Returns:
- the ServicePrincipalProperties object itself.
-
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.
-
withSecret
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-