use of org.cloudfoundry.uaa.tokens.CheckTokenResponse in project cf-java-client by cloudfoundry.
the class ReactorTokens method check.
@Override
public Mono<CheckTokenResponse> check(CheckTokenRequest request) {
return post(request, CheckTokenResponse.class, builder -> builder.pathSegment("check_token"), outbound -> outbound.map(r -> {
String encoded = Base64.getEncoder().encodeToString(new AsciiString(request.getClientId()).concat(":").concat(request.getClientSecret()).toByteArray());
r.requestHeaders().set(AUTHORIZATION, BASIC_PREAMBLE + encoded);
return r;
})).checkpoint();
}
Aggregations