共用方式為


PublicClientApplication.Builder Class

public static class PublicClientApplication.Builder
extends Builder<Builder>

Method Summary

Modifier and Type Method and Description
Builder broker(IBroker val)

Implementation of IBroker that will be used to retrieve tokens

PublicClientApplication build()
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

broker

public PublicClientApplication.Builder broker(IBroker val)

Implementation of IBroker that will be used to retrieve tokens

Setting this will cause MSAL Java to use the given broker implementation to retrieve tokens from a broker (such as WAM/MSALRuntime) in flows that support it

Parameters:

val

build

public PublicClientApplication build()

self

protected PublicClientApplication.Builder self()

Applies to