IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder 类

  • java.lang.Object
    • com.microsoft.aad.msal4j.IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder

public static class IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder

方法摘要

修饰符和类型 方法和描述
IntegratedWindowsAuthenticationParameters build()
IntegratedWindowsAuthenticationParametersBuilder claims(ClaimsRequest claims)

通过 OIDC 声明请求参数请求的声明,允许对标准和自定义声明的请求

IntegratedWindowsAuthenticationParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)

向令牌请求添加其他标头

IntegratedWindowsAuthenticationParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)

将其他参数添加到令牌请求

IntegratedWindowsAuthenticationParametersBuilder scopes(@NonNull Set<String> scopes)

应用程序请求访问的范围

IntegratedWindowsAuthenticationParametersBuilder tenant(String tenant)

替代此请求的颁发机构 URL 中的租户值

java.lang.String toString()
IntegratedWindowsAuthenticationParametersBuilder username(@NonNull String username)

要为其获取令牌的用户帐户的标识符

方法继承自 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

方法详细信息

build

public IntegratedWindowsAuthenticationParameters build()

claims

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder claims(ClaimsRequest claims)

通过 OIDC 声明请求参数请求的声明,允许对标准和自定义声明的请求

参数:

claims

返回:

this

extraHttpHeaders

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)

向令牌请求添加其他标头

参数:

extraHttpHeaders

返回:

this

extraQueryParameters

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)

将其他参数添加到令牌请求

参数:

extraQueryParameters

返回:

this

scopes

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder scopes(@NonNull Set<String> scopes)

应用程序请求访问的范围

参数:

scopes

返回:

this

tenant

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder tenant(String tenant)

替代此请求的颁发机构 URL 中的租户值

参数:

tenant

返回:

this

toString

public String toString()

替代:

IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder.toString()

username

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder username(@NonNull String username)

要为其获取令牌的用户帐户的标识符

参数:

username

返回:

this

适用于