ServicePrincipalProperties Class

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

public final class 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.

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).

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.

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.

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