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)

已放弃

不建议用于生产方案。 它将在将来的版本中删除,并且行为可能被新 API 替换。

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

IntegratedWindowsAuthenticationParametersBuilder scopes(Set<String> scopes)

应用程序请求访问的范围

IntegratedWindowsAuthenticationParametersBuilder tenant(String tenant)

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

java.lang.String toString()
IntegratedWindowsAuthenticationParametersBuilder username(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

extraHttpHeaders

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

向令牌请求添加其他标头

参数:

extraHttpHeaders

extraQueryParameters


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

已放弃

不建议用于生产方案。 它将在将来的版本中删除,并且行为可能被新 API 替换。

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

参数:

extraQueryParameters

scopes

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

应用程序请求访问的范围

参数:

scopes

tenant

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder tenant(String tenant)

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

参数:

tenant

toString

public String toString()

替代:

IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder.toString()

username

public IntegratedWindowsAuthenticationParameters.IntegratedWindowsAuthenticationParametersBuilder username(String username)

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

参数:

username

适用于