ManagedIdentityApplication.Builder Class

public static class ManagedIdentityApplication.Builder
extends Builder<Builder>

Method Summary

Modifier and Type Method and Description
ManagedIdentityApplication build()
Builder clientCapabilities(List<String> clientCapabilities)

Informs the token issuer that the application is able to perform complex authentication actions.

Builder resource(String resource)

Deprecated

This method has no effect as the resource field is not used in the ManagedIdentityApplication itself. Use builder(String resource) to set the resource when calling acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters).
protected Builder self()

Methods inherited from Builder

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

build

public ManagedIdentityApplication build()

clientCapabilities

public ManagedIdentityApplication.Builder clientCapabilities(List<String> clientCapabilities)

Informs the token issuer that the application is able to perform complex authentication actions. For example, "cp1" means that the application is able to perform conditional access evaluation, because the application has been set up to parse WWW-Authenticate headers associated with a 401 response from the protected APIs, and to retry the request with claims API.

Parameters:

clientCapabilities - a list of capabilities (e.g., ["cp1"]) recognized by the token service.

Returns:

instance of Builder of ManagedIdentityApplication.

resource


public ManagedIdentityApplication.Builder resource(String resource)

Deprecated

This method has no effect as the resource field is not used in the ManagedIdentityApplication itself. Use builder(String resource) to set the resource when calling acquireTokenForManagedIdentity(ManagedIdentityParameters managedIdentityParameters).

Parameters:

resource - Resource to access (unused)

Returns:

instance of Builder of ManagedIdentityApplication

self

protected ManagedIdentityApplication.Builder self()

Applies to