Dela via


ManagedIdentityId Class

  • java.lang.Object
    • com.microsoft.aad.msal4j.ManagedIdentityId

public class ManagedIdentityId

Method Summary

Modifier and Type Method and Description
com.microsoft.aad.msal4j.ManagedIdentityIdType getIdType()
java.lang.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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

getIdType

public ManagedIdentityIdType getIdType()

getUserAssignedId

public String getUserAssignedId()

systemAssigned

public static ManagedIdentityId systemAssigned()

Create an instance of a system assigned managed identity.

Returns:

Instance of ManagedIdentityId.

userAssignedClientId

public static ManagedIdentityId userAssignedClientId(String clientId)

Create an instance of ManagedIdentityId for a user assigned managed identity from a client id.

Parameters:

clientId - Client id of the user assigned managed identity assigned to azure resource.

Returns:

Instance of ManagedIdentityId

userAssignedObjectId

public static ManagedIdentityId userAssignedObjectId(String objectId)

Create an instance of ManagedIdentityId for a user assigned managed identity from an object id.

Parameters:

objectId - Object ID of the user assigned managed identity assigned to azure resource.

Returns:

Instance of ManagedIdentityId

userAssignedResourceId

public static ManagedIdentityId userAssignedResourceId(String resourceId)

Create an instance of ManagedIdentityId for a user assigned managed identity from a resource id.

Parameters:

resourceId - Resource ID of the user assigned managed identity assigned to azure resource.

Returns:

Instance of ManagedIdentityId

Applies to