public class ManagedIdentityId extends Object
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.aad.msal4j.ManagedIdentityIdType |
getIdType() |
String |
getUserAssignedId() |
static ManagedIdentityId |
systemAssigned()
Create an instance of a system assigned managed identity.
|
static ManagedIdentityId |
userAssignedClientId(String clientId)
Create an instance of ManagedIdentityId for a user assigned managed identity from a client id.
|
static ManagedIdentityId |
userAssignedObjectId(String objectId)
Create an instance of ManagedIdentityId for a user assigned managed identity from an object id.
|
static ManagedIdentityId |
userAssignedResourceId(String resourceId)
Create an instance of ManagedIdentityId for a user assigned managed identity from a resource id.
|
public static ManagedIdentityId systemAssigned()
public static ManagedIdentityId userAssignedClientId(String clientId)
clientId - Client id of the user assigned managed identity assigned to azure resource.NullPointerException - Indicates the clientId param is null or blankpublic static ManagedIdentityId userAssignedResourceId(String resourceId)
resourceId - Resource ID of the user assigned managed identity assigned to azure resource.NullPointerException - Indicates the resourceId param is null or blankpublic static ManagedIdentityId userAssignedObjectId(String objectId)
objectId - Object ID of the user assigned managed identity assigned to azure resource.NullPointerException - Indicates the resourceId param is null or blankpublic String getUserAssignedId()
public com.microsoft.aad.msal4j.ManagedIdentityIdType getIdType()
Copyright © 2013–2025. All rights reserved.