Class OAuth2ClientAccessAuthorizeManager
java.lang.Object
net.sourceforge.plantuml.security.authentication.oauth.AbstractOAuth2AccessAuthorizeManager
net.sourceforge.plantuml.security.authentication.oauth.OAuth2ClientAccessAuthorizeManager
- All Implemented Interfaces:
SecurityAuthorizeManager
Authorize the principal (from
SecurityCredentials
and creates a
SecurityAuthentication
object with a bearer token secret.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(SecurityCredentials credentials) Creates from the credentials the authentication object to access an endpoint.Methods inherited from class net.sourceforge.plantuml.security.authentication.oauth.AbstractOAuth2AccessAuthorizeManager
buildAccessDataFromResponse, headers, requestAndCreateAuthFromResponse, urlEncode
-
Constructor Details
-
OAuth2ClientAccessAuthorizeManager
public OAuth2ClientAccessAuthorizeManager()
-
-
Method Details
-
create
Description copied from interface:SecurityAuthorizeManager
Creates from the credentials the authentication object to access an endpoint. If the credentials defines a principal (e.g. in OAuth2), the create method should authorize the principal and get the final authentication data to access an endpoint.- Parameters:
credentials
- the configured credentials- Returns:
- the authentication object.
-