本文整理汇总了Java中org.cloudfoundry.reactor.uaa.ReactorUaaClient类的典型用法代码示例。如果您正苦于以下问题:Java ReactorUaaClient类的具体用法?Java ReactorUaaClient怎么用?Java ReactorUaaClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ReactorUaaClient类属于org.cloudfoundry.reactor.uaa包,在下文中一共展示了ReactorUaaClient类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doCreateOperations
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
private CloudFoundryOperations doCreateOperations(CloudFoundryClient cloudFoundryClient,
ConnectionContext connectionContext,
TokenProvider tokenProvider,
String org,
String space) {
ReactorDopplerClient dopplerClient = ReactorDopplerClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
ReactorUaaClient uaaClient = ReactorUaaClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
return DefaultCloudFoundryOperations.builder()
.cloudFoundryClient(cloudFoundryClient)
.dopplerClient(dopplerClient)
.uaaClient(uaaClient)
.organization(org)
.space(space)
.build();
}
开发者ID:spring-cloud,项目名称:spring-cloud-spinnaker,代码行数:24,代码来源:DefaultAppDeployerFactory.java
示例2: setup
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Before
public void setup()
{
String host = System.getenv("CF_HOST");
String username = System.getenv("CF_USERNAME");
String password = System.getenv("CF_PASSWORD");
if(host == null || username == null || password == null)
{
throw new RuntimeException("CF_HOST, CF_USERNAME and CF_PASSWORD must be set");
}
ConnectionContext connectionContext = DefaultConnectionContext.builder().apiHost(host).skipSslValidation(true).build();
TokenProvider tokenProvider = PasswordGrantTokenProvider.builder().username(username).password(password).build();
ReactorUaaClient uaaClient = ReactorUaaClient.builder().connectionContext(connectionContext).tokenProvider(tokenProvider).build();
uaa = new ReactorUaaClientFacade(uaaClient);
}
开发者ID:EngineerBetter,项目名称:cf-converger,代码行数:19,代码来源:ReactorUaaFacadeIntegrationTest.java
示例3: cloudFoundryOperations
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Bean
public CloudFoundryOperations cloudFoundryOperations(CloudFoundryClient cloudFoundryClient,
ConnectionContext connectionContext,
TokenProvider tokenProvider,
CloudFoundryConnectionProperties properties) {
ReactorDopplerClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
ReactorUaaClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
return DefaultCloudFoundryOperations.builder()
.cloudFoundryClient(cloudFoundryClient)
.organization(properties.getOrg())
.space(properties.getSpace())
.build();
}
开发者ID:spring-cloud,项目名称:spring-cloud-deployer-cloudfoundry,代码行数:22,代码来源:CloudFoundryTestSupport.java
示例4: producesAllBeans
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Test
public void producesAllBeans() {
Assume.assumeTrue(configExists());
ApplicationContext ctx = new SpringApplicationBuilder()
.sources(MyConfig.class)
.properties(defaultConfig())
.run();
Class[] tags = {ReactorCloudFoundryClient.class, DefaultCloudFoundryOperations.class,
DefaultConnectionContext.class, DopplerClient.class, RoutingClient.class, PasswordGrantTokenProvider.class,
ReactorUaaClient.class};
for (Class<?> c : tags) {
Assertions.assertThat(ctx.getBean(c)).isNotNull();
}
}
开发者ID:spring-cloud,项目名称:spring-cloud-cloudfoundry,代码行数:18,代码来源:CloudFoundryClientAutoConfigurationTest.java
示例5: uaaClient
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Bean
ReactorUaaClient uaaClient(ConnectionContext ctx, TokenProvider tokenProvider) {
return ReactorUaaClient
.builder()
.connectionContext(ctx)
.tokenProvider(tokenProvider)
.build();
}
开发者ID:applied-continuous-delivery-livelessons,项目名称:testing-101,代码行数:9,代码来源:CloudFoundryClientConfiguration.java
示例6: cloudFoundryOperations
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Bean
public DefaultCloudFoundryOperations cloudFoundryOperations(
CloudFoundryClient cfc,
ReactorDopplerClient dopplerClient,
ReactorUaaClient uaaClient,
@Value("${cf.org}") String organization,
@Value("${cf.space}") String space) {
return DefaultCloudFoundryOperations.builder()
.cloudFoundryClient(cfc)
.dopplerClient(dopplerClient)
.uaaClient(uaaClient)
.organization(organization)
.space(space)
.build();
}
开发者ID:applied-continuous-delivery-livelessons,项目名称:testing-101,代码行数:16,代码来源:CloudFoundryClientConfiguration.java
示例7: uaaClient
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Bean
UaaClient uaaClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorUaaClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
}
开发者ID:EngineerBetter,项目名称:cf-converger,代码行数:8,代码来源:CfConfig.java
示例8: getV2Operations
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
protected CloudFoundryOperations getV2Operations() throws CoreException {
if (this.v2Operations == null) {
try {
boolean keepAlive = keepAlive();
DefaultConnectionContext connection = DefaultConnectionContext.builder()
.proxyConfiguration(Optional.ofNullable(getProxyConfiguration())).apiHost(getHost())
// SSL handshake timeout may need to be increased, for
// log streaming
.sslHandshakeTimeout(Duration.ofSeconds(cloudServer.getSslHandshakeTimeout()))
.keepAlive(keepAlive).skipSslValidation(skipSsl()).build();
PasswordGrantTokenProvider tokenProvider = PasswordGrantTokenProvider.builder()
.username(credentials.getUser()).password(credentials.getPassword()).build();
ReactorUaaClient uaaClient = ReactorUaaClient.builder().connectionContext(connection)
.tokenProvider(tokenProvider).build();
ReactorDopplerClient dopplerClient = ReactorDopplerClient.builder().connectionContext(connection)
.tokenProvider(tokenProvider).build();
this.v2Client = ReactorCloudFoundryClient.builder().connectionContext(connection)
.tokenProvider(tokenProvider).build();
this.v2Operations = DefaultCloudFoundryOperations.builder().cloudFoundryClient(v2Client)
.dopplerClient(dopplerClient).uaaClient(uaaClient).organization(orgName).space(spaceName)
.build();
} catch (Throwable e) {
throw CloudErrorUtil.toCoreException(e);
}
}
return this.v2Operations;
}
开发者ID:eclipse,项目名称:cft,代码行数:36,代码来源:V2Client.java
示例9: uaaClient
import org.cloudfoundry.reactor.uaa.ReactorUaaClient; //导入依赖的package包/类
@Bean
@Lazy
@ConditionalOnMissingBean
public ReactorUaaClient uaaClient(ConnectionContext connectionContext, TokenProvider tokenProvider) {
return ReactorUaaClient.builder()
.connectionContext(connectionContext)
.tokenProvider(tokenProvider)
.build();
}
开发者ID:spring-cloud,项目名称:spring-cloud-cloudfoundry,代码行数:10,代码来源:CloudFoundryClientAutoConfiguration.java
注:本文中的org.cloudfoundry.reactor.uaa.ReactorUaaClient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论