Class TokenRevocationBuilder
java.lang.Object
com.linecorp.armeria.common.auth.oauth2.TokenRevocationBuilder
Builds
TokenRevocation
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance ofTokenRevocation
using configured parameters.clientAuthentication
(ClientAuthentication clientAuthentication) Provides client authentication for the OAuth 2.0 requests as per [RFC6749], Section 2.3.clientAuthentication
(Supplier<ClientAuthentication> clientAuthenticationSupplier) Provides client authentication for the OAuth 2.0 requests as per [RFC6749], Section 2.3.clientAuthorization
(Supplier<String> authorizationSupplier, String authorizationType) Deprecated.clientBasicAuthorization
(Supplier<String> authorizationSupplier) Deprecated.UseclientAuthentication(ClientAuthentication)
instead.clientCredentials
(Supplier<? extends Map.Entry<String, String>> credentialsSupplier, String authorizationType) Deprecated.UseclientAuthentication(ClientAuthentication)
instead.
-
Method Details
-
clientAuthorization
@Deprecated public TokenRevocationBuilder clientAuthorization(Supplier<String> authorizationSupplier, String authorizationType) Deprecated.UseclientAuthentication(ClientAuthentication)
instead.Provides client authorization for the OAuth 2.0 requests based on encoded authorization token and authorization type, as per [RFC6749], Section 2.3.- Parameters:
authorizationSupplier
- A supplier of encoded client authorization token.authorizationType
- One of the registered HTTP authentication schemes as per HTTP Authentication Scheme Registry.
-
clientBasicAuthorization
@Deprecated public TokenRevocationBuilder clientBasicAuthorization(Supplier<String> authorizationSupplier) Deprecated.UseclientAuthentication(ClientAuthentication)
instead.Provides client authorization for the OAuth 2.0 requests based on encoded authorization token andBasic
authorization type, as per [RFC6749], Section 2.3.- Parameters:
authorizationSupplier
- A supplier of encoded client authorization token.
-
clientCredentials
@Deprecated public TokenRevocationBuilder clientCredentials(Supplier<? extends Map.Entry<String, String>> credentialsSupplier, String authorizationType) Deprecated.UseclientAuthentication(ClientAuthentication)
instead.Provides client authorization for the OAuth 2.0 requests based on client credentials and authorization type, as per [RFC6749], Section 2.3.- Parameters:
credentialsSupplier
- A supplier of client credentials.authorizationType
- One of the registered HTTP authentication schemes as per HTTP Authentication Scheme Registry.
-
clientAuthentication
Provides client authentication for the OAuth 2.0 requests as per [RFC6749], Section 2.3. -
clientAuthentication
public TokenRevocationBuilder clientAuthentication(Supplier<ClientAuthentication> clientAuthenticationSupplier) Provides client authentication for the OAuth 2.0 requests as per [RFC6749], Section 2.3. -
build
Builds a new instance ofTokenRevocation
using configured parameters.
-
clientAuthentication(ClientAuthentication)
instead.