MicrosoftGraphServicePrincipalInner Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphServicePrincipalInner
- com.
- com.
- com.
public final class MicrosoftGraphServicePrincipalInner
extends MicrosoftGraphDirectoryObjectInner
servicePrincipal Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphServicePrincipalInner() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
accountEnabled()
Get the account |
List<Microsoft |
addIns()
Get the add |
Map<String,Object> |
additionalProperties()
Get the additional |
List<String> |
alternativeNames()
Get the alternative |
String |
appDescription()
Get the app |
String |
appDisplayName()
Get the app |
String |
appId()
Get the app |
UUID |
appOwnerOrganizationId()
Get the app |
List<Microsoft |
appRoleAssignedTo()
Get the app |
Boolean |
appRoleAssignmentRequired()
Get the app |
List<Microsoft |
appRoleAssignments()
Get the app |
List<Microsoft |
appRoles()
Get the app |
String |
applicationTemplateId()
Get the application |
List<Microsoft |
claimsMappingPolicies()
Get the claims |
List<Microsoft |
createdObjects()
Get the created |
List<Microsoft |
delegatedPermissionClassifications()
Get the delegated |
String |
description()
Get the description property: The description property. |
String |
displayName()
Get the display |
List<Microsoft |
endpoints()
Get the endpoints property: Endpoints available for discovery. |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
List<Microsoft |
homeRealmDiscoveryPolicies()
Get the home |
String |
homepage()
Get the homepage property: Home page or landing page of the application. |
Microsoft |
info()
Get the info property: informational |
List<Microsoft |
keyCredentials()
Get the key |
String |
loginUrl()
Get the login |
String |
logoutUrl()
Get the logout |
List<Microsoft |
memberOf()
Get the member |
String |
notes()
Get the notes property: The notes property. |
List<String> |
notificationEmailAddresses()
Get the notification |
List<Microsoft |
oauth2PermissionGrants()
Get the oauth2Permission |
List<Microsoft |
oauth2PermissionScopes()
Get the oauth2Permission |
List<Microsoft |
ownedObjects()
Get the owned |
List<Microsoft |
owners()
Get the owners property: Directory objects that are owners of this service |
List<Microsoft |
passwordCredentials()
Get the password |
String |
preferredSingleSignOnMode()
Get the preferred |
String |
preferredTokenSigningKeyThumbprint()
Get the preferred |
List<String> |
replyUrls()
Get the reply |
Microsoft |
samlSingleSignOnSettings()
Get the saml |
List<String> |
servicePrincipalNames()
Get the service |
String |
servicePrincipalType()
Get the service |
String |
signInAudience()
Get the sign |
List<String> |
tags()
Get the tags property: Custom strings that can be used to categorize and identify the service principal. |
Json |
toJson(JsonWriter jsonWriter) |
UUID |
tokenEncryptionKeyId()
Get the token |
List<Microsoft |
tokenIssuancePolicies()
Get the token |
List<Microsoft |
tokenLifetimePolicies()
Get the token |
List<Microsoft |
transitiveMemberOf()
Get the transitive |
void |
validate()
Validates the instance. |
Microsoft |
withAccountEnabled(Boolean accountEnabled)
Set the account |
Microsoft |
withAddIns(List<MicrosoftGraphAddIn> addIns)
Set the add |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAlternativeNames(List<String> alternativeNames)
Set the alternative |
Microsoft |
withAppDescription(String appDescription)
Set the app |
Microsoft |
withAppDisplayName(String appDisplayName)
Set the app |
Microsoft |
withAppId(String appId)
Set the app |
Microsoft |
withAppOwnerOrganizationId(UUID appOwnerOrganizationId)
Set the app |
Microsoft |
withAppRoleAssignedTo(List<MicrosoftGraphAppRoleAssignment> appRoleAssignedTo)
Set the app |
Microsoft |
withAppRoleAssignmentRequired(Boolean appRoleAssignmentRequired)
Set the app |
Microsoft |
withAppRoleAssignments(List<MicrosoftGraphAppRoleAssignment> appRoleAssignments)
Set the app |
Microsoft |
withAppRoles(List<MicrosoftGraphAppRole> appRoles)
Set the app |
Microsoft |
withApplicationTemplateId(String applicationTemplateId)
Set the application |
Microsoft |
withClaimsMappingPolicies(List<MicrosoftGraphClaimsMappingPolicy> claimsMappingPolicies)
Set the claims |
Microsoft |
withCreatedObjects(List<MicrosoftGraphDirectoryObjectInner> createdObjects)
Set the created |
Microsoft |
withDelegatedPermissionClassifications(List<MicrosoftGraphDelegatedPermissionClassification> delegatedPermissionClassifications)
Set the delegated |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withDescription(String description)
Set the description property: The description property. |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withEndpoints(List<MicrosoftGraphEndpoint> endpoints)
Set the endpoints property: Endpoints available for discovery. |
Microsoft |
withHomeRealmDiscoveryPolicies(List<MicrosoftGraphHomeRealmDiscoveryPolicyInner> homeRealmDiscoveryPolicies)
Set the home |
Microsoft |
withHomepage(String homepage)
Set the homepage property: Home page or landing page of the application. |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withInfo(MicrosoftGraphInformationalUrl info)
Set the info property: informational |
Microsoft |
withKeyCredentials(List<MicrosoftGraphKeyCredentialInner> keyCredentials)
Set the key |
Microsoft |
withLoginUrl(String loginUrl)
Set the login |
Microsoft |
withLogoutUrl(String logoutUrl)
Set the logout |
Microsoft |
withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)
Set the member |
Microsoft |
withNotes(String notes)
Set the notes property: The notes property. |
Microsoft |
withNotificationEmailAddresses(List<String> notificationEmailAddresses)
Set the notification |
Microsoft |
withOauth2PermissionGrants(List<MicrosoftGraphOAuth2PermissionGrant> oauth2PermissionGrants)
Set the oauth2Permission |
Microsoft |
withOauth2PermissionScopes(List<MicrosoftGraphPermissionScope> oauth2PermissionScopes)
Set the oauth2Permission |
Microsoft |
withOwnedObjects(List<MicrosoftGraphDirectoryObjectInner> ownedObjects)
Set the owned |
Microsoft |
withOwners(List<MicrosoftGraphDirectoryObjectInner> owners)
Set the owners property: Directory objects that are owners of this service |
Microsoft |
withPasswordCredentials(List<MicrosoftGraphPasswordCredentialInner> passwordCredentials)
Set the password |
Microsoft |
withPreferredSingleSignOnMode(String preferredSingleSignOnMode)
Set the preferred |
Microsoft |
withPreferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint)
Set the preferred |
Microsoft |
withReplyUrls(List<String> replyUrls)
Set the reply |
Microsoft |
withSamlSingleSignOnSettings(MicrosoftGraphSamlSingleSignOnSettings samlSingleSignOnSettings)
Set the saml |
Microsoft |
withServicePrincipalNames(List<String> servicePrincipalNames)
Set the service |
Microsoft |
withServicePrincipalType(String servicePrincipalType)
Set the service |
Microsoft |
withSignInAudience(String signInAudience)
Set the sign |
Microsoft |
withTags(List<String> tags)
Set the tags property: Custom strings that can be used to categorize and identify the service principal. |
Microsoft |
withTokenEncryptionKeyId(UUID tokenEncryptionKeyId)
Set the token |
Microsoft |
withTokenIssuancePolicies(List<MicrosoftGraphTokenIssuancePolicy> tokenIssuancePolicies)
Set the token |
Microsoft |
withTokenLifetimePolicies(List<MicrosoftGraphTokenLifetimePolicy> tokenLifetimePolicies)
Set the token |
Microsoft |
withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
Set the transitive |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
Constructor Details
MicrosoftGraphServicePrincipalInner
public MicrosoftGraphServicePrincipalInner()
Creates an instance of MicrosoftGraphServicePrincipalInner class.
Method Details
accountEnabled
public Boolean accountEnabled()
Get the accountEnabled property: true if the service principal account is enabled; otherwise, false.
Returns:
addIns
public List
Get the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on.
Returns:
additionalProperties
public Map
Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphServicePrincipalInner.additionalProperties()Returns:
alternativeNames
public List
Get the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
Returns:
appDescription
public String appDescription()
Get the appDescription property: The appDescription property.
Returns:
appDisplayName
public String appDisplayName()
Get the appDisplayName property: The display name exposed by the associated application.
Returns:
appId
public String appId()
Get the appId property: The unique identifier for the associated application (its appId property).
Returns:
appOwnerOrganizationId
public UUID appOwnerOrganizationId()
Get the appOwnerOrganizationId property: Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications.
Returns:
appRoleAssignedTo
public List
Get the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal. Read-only.
Returns:
appRoleAssignmentRequired
public Boolean appRoleAssignmentRequired()
Get the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.
Returns:
appRoleAssignments
public List
Get the appRoleAssignments property: Applications that this service principal is assigned to. Read-only. Nullable.
Returns:
appRoles
public List
Get the appRoles property: The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable.
Returns:
applicationTemplateId
public String applicationTemplateId()
Get the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only.
Returns:
claimsMappingPolicies
public List
Get the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.
Returns:
createdObjects
public List
Get the createdObjects property: Directory objects created by this service principal. Read-only. Nullable.
Returns:
delegatedPermissionClassifications
public List
Get the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.
Returns:
description
public String description()
Get the description property: The description property.
Returns:
displayName
public String displayName()
Get the displayName property: The display name for the service principal.
Returns:
endpoints
public List
Get the endpoints property: Endpoints available for discovery. Services like Sharepoint populate this property with a tenant specific SharePoint endpoints that other applications can discover and use in their experiences.
Returns:
fromJson
public static MicrosoftGraphServicePrincipalInner fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphServicePrincipalInner from the JsonReader.
Parameters:
Returns:
Throws:
homeRealmDiscoveryPolicies
public List
Get the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.
Returns:
homepage
public String homepage()
Get the homepage property: Home page or landing page of the application.
Returns:
info
public MicrosoftGraphInformationalUrl info()
Get the info property: informationalUrl.
Returns:
keyCredentials
public List
Get the keyCredentials property: The collection of key credentials associated with the service principal. Not nullable.
Returns:
loginUrl
public String loginUrl()
Get the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL.
Returns:
logoutUrl
public String logoutUrl()
Get the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.
Returns:
memberOf
public List
Get the memberOf property: Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable.
Returns:
notes
public String notes()
Get the notes property: The notes property.
Returns:
notificationEmailAddresses
public List
Get the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
Returns:
oauth2PermissionGrants
public List
Get the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.
Returns:
oauth2PermissionScopes
public List
Get the oauth2PermissionScopes property: The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable.
Returns:
ownedObjects
public List
Get the ownedObjects property: Directory objects that are owned by this service principal. Read-only. Nullable.
Returns:
owners
public List
Get the owners property: Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable.
Returns:
passwordCredentials
public List
Get the passwordCredentials property: The collection of password credentials associated with the service principal. Not nullable.
Returns:
preferredSingleSignOnMode
public String preferredSingleSignOnMode()
Get the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and oidc.
Returns:
preferredTokenSigningKeyThumbprint
public String preferredTokenSigningKeyThumbprint()
Get the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.
Returns:
replyUrls
public List
Get the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.
Returns:
samlSingleSignOnSettings
public MicrosoftGraphSamlSingleSignOnSettings samlSingleSignOnSettings()
Get the samlSingleSignOnSettings property: samlSingleSignOnSettings.
Returns:
servicePrincipalNames
public List
Get the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.
Returns:
servicePrincipalType
public String servicePrincipalType()
Get the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity. This is set by Azure AD internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity.
Returns:
signInAudience
public String signInAudience()
Get the signInAudience property: The signInAudience property.
Returns:
tags
public List
Get the tags property: Custom strings that can be used to categorize and identify the service principal. Not nullable.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphServicePrincipalInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
tokenEncryptionKeyId
public UUID tokenEncryptionKeyId()
Get the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.
Returns:
tokenIssuancePolicies
public List
Get the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.
Returns:
tokenLifetimePolicies
public List
Get the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.
Returns:
transitiveMemberOf
public List
Get the transitiveMemberOf property: The transitiveMemberOf property.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphServicePrincipalInner.validate()withAccountEnabled
public MicrosoftGraphServicePrincipalInner withAccountEnabled(Boolean accountEnabled)
Set the accountEnabled property: true if the service principal account is enabled; otherwise, false.
Parameters:
Returns:
withAddIns
public MicrosoftGraphServicePrincipalInner withAddIns(List
Set the addIns property: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Microsoft 365 call the application in the context of a document the user is working on.
Parameters:
Returns:
withAdditionalProperties
public MicrosoftGraphServicePrincipalInner withAdditionalProperties(Map
Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphServicePrincipalInner.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAlternativeNames
public MicrosoftGraphServicePrincipalInner withAlternativeNames(List
Set the alternativeNames property: Used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
Parameters:
Returns:
withAppDescription
public MicrosoftGraphServicePrincipalInner withAppDescription(String appDescription)
Set the appDescription property: The appDescription property.
Parameters:
Returns:
withAppDisplayName
public MicrosoftGraphServicePrincipalInner withAppDisplayName(String appDisplayName)
Set the appDisplayName property: The display name exposed by the associated application.
Parameters:
Returns:
withAppId
public MicrosoftGraphServicePrincipalInner withAppId(String appId)
Set the appId property: The unique identifier for the associated application (its appId property).
Parameters:
Returns:
withAppOwnerOrganizationId
public MicrosoftGraphServicePrincipalInner withAppOwnerOrganizationId(UUID appOwnerOrganizationId)
Set the appOwnerOrganizationId property: Contains the tenant id where the application is registered. This is applicable only to service principals backed by applications.
Parameters:
Returns:
withAppRoleAssignedTo
public MicrosoftGraphServicePrincipalInner withAppRoleAssignedTo(List
Set the appRoleAssignedTo property: Principals (users, groups, and service principals) that are assigned to this service principal. Read-only.
Parameters:
Returns:
withAppRoleAssignmentRequired
public MicrosoftGraphServicePrincipalInner withAppRoleAssignmentRequired(Boolean appRoleAssignmentRequired)
Set the appRoleAssignmentRequired property: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.
Parameters:
Returns:
withAppRoleAssignments
public MicrosoftGraphServicePrincipalInner withAppRoleAssignments(List
Set the appRoleAssignments property: Applications that this service principal is assigned to. Read-only. Nullable.
Parameters:
Returns:
withAppRoles
public MicrosoftGraphServicePrincipalInner withAppRoles(List
Set the appRoles property: The roles exposed by the application which this service principal represents. For more information see the appRoles property definition on the application entity. Not nullable.
Parameters:
Returns:
withApplicationTemplateId
public MicrosoftGraphServicePrincipalInner withApplicationTemplateId(String applicationTemplateId)
Set the applicationTemplateId property: Unique identifier of the applicationTemplate that the servicePrincipal was created from. Read-only.
Parameters:
Returns:
withClaimsMappingPolicies
public MicrosoftGraphServicePrincipalInner withClaimsMappingPolicies(List
Set the claimsMappingPolicies property: The claimsMappingPolicies assigned to this service principal.
Parameters:
Returns:
withCreatedObjects
public MicrosoftGraphServicePrincipalInner withCreatedObjects(List
Set the createdObjects property: Directory objects created by this service principal. Read-only. Nullable.
Parameters:
Returns:
withDelegatedPermissionClassifications
public MicrosoftGraphServicePrincipalInner withDelegatedPermissionClassifications(List
Set the delegatedPermissionClassifications property: The delegatedPermissionClassifications property.
Parameters:
Returns:
withDeletedDateTime
public MicrosoftGraphServicePrincipalInner withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphServicePrincipalInner.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withDescription
public MicrosoftGraphServicePrincipalInner withDescription(String description)
Set the description property: The description property.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphServicePrincipalInner withDisplayName(String displayName)
Set the displayName property: The display name for the service principal.
Parameters:
Returns:
withEndpoints
public MicrosoftGraphServicePrincipalInner withEndpoints(List
Set the endpoints property: Endpoints available for discovery. Services like Sharepoint populate this property with a tenant specific SharePoint endpoints that other applications can discover and use in their experiences.
Parameters:
Returns:
withHomeRealmDiscoveryPolicies
public MicrosoftGraphServicePrincipalInner withHomeRealmDiscoveryPolicies(List
Set the homeRealmDiscoveryPolicies property: The homeRealmDiscoveryPolicies assigned to this service principal.
Parameters:
Returns:
withHomepage
public MicrosoftGraphServicePrincipalInner withHomepage(String homepage)
Set the homepage property: Home page or landing page of the application.
Parameters:
Returns:
withId
public MicrosoftGraphServicePrincipalInner withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphServicePrincipalInner.withId(String id)Parameters:
withInfo
public MicrosoftGraphServicePrincipalInner withInfo(MicrosoftGraphInformationalUrl info)
Set the info property: informationalUrl.
Parameters:
Returns:
withKeyCredentials
public MicrosoftGraphServicePrincipalInner withKeyCredentials(List
Set the keyCredentials property: The collection of key credentials associated with the service principal. Not nullable.
Parameters:
Returns:
withLoginUrl
public MicrosoftGraphServicePrincipalInner withLoginUrl(String loginUrl)
Set the loginUrl property: Specifies the URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Azure AD My Apps, or the Azure AD SSO URL.
Parameters:
Returns:
withLogoutUrl
public MicrosoftGraphServicePrincipalInner withLogoutUrl(String logoutUrl)
Set the logoutUrl property: Specifies the URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols.
Parameters:
Returns:
withMemberOf
public MicrosoftGraphServicePrincipalInner withMemberOf(List
Set the memberOf property: Roles that this service principal is a member of. HTTP Methods: GET Read-only. Nullable.
Parameters:
Returns:
withNotes
public MicrosoftGraphServicePrincipalInner withNotes(String notes)
Set the notes property: The notes property.
Parameters:
Returns:
withNotificationEmailAddresses
public MicrosoftGraphServicePrincipalInner withNotificationEmailAddresses(List
Set the notificationEmailAddresses property: Specifies the list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
Parameters:
Returns:
withOauth2PermissionGrants
public MicrosoftGraphServicePrincipalInner withOauth2PermissionGrants(List
Set the oauth2PermissionGrants property: Delegated permission grants authorizing this service principal to access an API on behalf of a signed-in user. Read-only. Nullable.
Parameters:
Returns:
withOauth2PermissionScopes
public MicrosoftGraphServicePrincipalInner withOauth2PermissionScopes(List
Set the oauth2PermissionScopes property: The delegated permissions exposed by the application. For more information see the oauth2PermissionScopes property on the application entity's api property. Not nullable.
Parameters:
Returns:
withOwnedObjects
public MicrosoftGraphServicePrincipalInner withOwnedObjects(List
Set the ownedObjects property: Directory objects that are owned by this service principal. Read-only. Nullable.
Parameters:
Returns:
withOwners
public MicrosoftGraphServicePrincipalInner withOwners(List
Set the owners property: Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable.
Parameters:
Returns:
withPasswordCredentials
public MicrosoftGraphServicePrincipalInner withPasswordCredentials(List
Set the passwordCredentials property: The collection of password credentials associated with the service principal. Not nullable.
Parameters:
Returns:
withPreferredSingleSignOnMode
public MicrosoftGraphServicePrincipalInner withPreferredSingleSignOnMode(String preferredSingleSignOnMode)
Set the preferredSingleSignOnMode property: Specifies the single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and oidc.
Parameters:
Returns:
withPreferredTokenSigningKeyThumbprint
public MicrosoftGraphServicePrincipalInner withPreferredTokenSigningKeyThumbprint(String preferredTokenSigningKeyThumbprint)
Set the preferredTokenSigningKeyThumbprint property: The preferredTokenSigningKeyThumbprint property.
Parameters:
Returns:
withReplyUrls
public MicrosoftGraphServicePrincipalInner withReplyUrls(List
Set the replyUrls property: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.
Parameters:
Returns:
withSamlSingleSignOnSettings
public MicrosoftGraphServicePrincipalInner withSamlSingleSignOnSettings(MicrosoftGraphSamlSingleSignOnSettings samlSingleSignOnSettings)
Set the samlSingleSignOnSettings property: samlSingleSignOnSettings.
Parameters:
Returns:
withServicePrincipalNames
public MicrosoftGraphServicePrincipalInner withServicePrincipalNames(List
Set the servicePrincipalNames property: Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Azure AD. For example,Client apps can specify a resource URI which is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.
Parameters:
Returns:
withServicePrincipalType
public MicrosoftGraphServicePrincipalInner withServicePrincipalType(String servicePrincipalType)
Set the servicePrincipalType property: Identifies if the service principal represents an application or a managed identity. This is set by Azure AD internally. For a service principal that represents an application this is set as Application. For a service principal that represent a managed identity this is set as ManagedIdentity.
Parameters:
Returns:
withSignInAudience
public MicrosoftGraphServicePrincipalInner withSignInAudience(String signInAudience)
Set the signInAudience property: The signInAudience property.
Parameters:
Returns:
withTags
public MicrosoftGraphServicePrincipalInner withTags(List
Set the tags property: Custom strings that can be used to categorize and identify the service principal. Not nullable.
Parameters:
Returns:
withTokenEncryptionKeyId
public MicrosoftGraphServicePrincipalInner withTokenEncryptionKeyId(UUID tokenEncryptionKeyId)
Set the tokenEncryptionKeyId property: Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.
Parameters:
Returns:
withTokenIssuancePolicies
public MicrosoftGraphServicePrincipalInner withTokenIssuancePolicies(List
Set the tokenIssuancePolicies property: The tokenIssuancePolicies assigned to this service principal.
Parameters:
Returns:
withTokenLifetimePolicies
public MicrosoftGraphServicePrincipalInner withTokenLifetimePolicies(List
Set the tokenLifetimePolicies property: The tokenLifetimePolicies assigned to this service principal.
Parameters:
Returns:
withTransitiveMemberOf
public MicrosoftGraphServicePrincipalInner withTransitiveMemberOf(List
Set the transitiveMemberOf property: The transitiveMemberOf property.
Parameters:
Returns:
Applies to
Azure SDK for Java