org.cloudfoundry.uaa.tokens.Tokens Maven / Gradle / Ivy
/*
* Copyright 2013-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cloudfoundry.uaa.tokens;
import reactor.core.publisher.Mono;
/**
* Main entry point to the UAA Access Token Administration Client API
*/
public interface Tokens {
/**
* Makes the Check Token request
*
* @param request the Check Token request
* @return the Check Token response
*/
Mono check(CheckTokenRequest request);
/**
* Makes the Authorization Code Grant request
*
* @param request the Authorization Code request
* @return the response from the Authorization Code request
*/
Mono getByAuthorizationCode(
GetTokenByAuthorizationCodeRequest request);
/**
* Makes the Client Credentials Grant request
*
* @param request the Client Credentials request
* @return the response from the Client Credentials request
*/
Mono getByClientCredentials(
GetTokenByClientCredentialsRequest request);
/**
* Makes the One-time Passcode request
*
* @param request the One Time Passcode token request
* @return the response from the One Time Passcode token request
*/
Mono getByOneTimePasscode(
GetTokenByOneTimePasscodeRequest request);
/**
* Makes the OpenID Connect request
*
* @param request the OpenId request
* @return the response from the OpenId request
*/
Mono getByOpenId(GetTokenByOpenIdRequest request);
/**
* Makes the Password Grant request
*
* @param request the Password token request
* @return the response from the Password token request
*/
Mono getByPassword(GetTokenByPasswordRequest request);
/**
* Makes the Token Key request
*
* @param request the Token Key request
* @return the response from the Token Key request
*/
Mono getKey(GetTokenKeyRequest request);
/**
* Makes the Token Keys request
*
* @param request the Token Keys request
* @return the Token Keys response
*/
Mono listKeys(ListTokenKeysRequest request);
/**
* Makes the Refresh Token request
*
* @param request the refresh token request
* @return the response from the refresh token request
*/
Mono refresh(RefreshTokenRequest request);
}