Class ServicePrincipalProperties

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

public final class ServicePrincipalProperties extends Object
Details of the service principal.
  • Constructor Details

    • ServicePrincipalProperties

      public ServicePrincipalProperties()
  • Method Details

    • applicationId

      public String applicationId()
      Get the applicationId property: Application ID of service principal.
      Returns:
      the applicationId value.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.