Class TuleapAuthenticationApiAuthenticationClient
- java.lang.Object
-
- io.jenkins.plugins.tuleap_api.client.internals.TuleapAuthenticationApiAuthenticationClient
-
- All Implemented Interfaces:
AccessTokenApi
,OpenIDClientApi
,WebhookTokenApi
public class TuleapAuthenticationApiAuthenticationClient extends Object implements AccessTokenApi, OpenIDClientApi, WebhookTokenApi
-
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOGGER
-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.AccessTokenApi
ACCESS_TOKEN_API, ACCESS_TOKEN_CONTENT_TYPE, REDIRECT_URI, REFRESH_TOKEN_SCOPES
-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.OpenIDClientApi
DISCOVERY_API, USER_INFO_API
-
Fields inherited from interface io.jenkins.plugins.tuleap_api.client.authentication.WebhookTokenApi
WEBHOOK_CHECK_API
-
-
Constructor Summary
Constructors Constructor Description TuleapAuthenticationApiAuthenticationClient(PluginHelper pluginHelper, okhttp3.OkHttpClient client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.auth0.jwk.UrlJwkProvider jwkProvider, TuleapConfiguration tuleapConfiguration, HeaderAuthenticationValidator headerAuthenticationValidator, AccessTokenValidator accessTokenValidator, UserInfoValidator userInfoValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkWebhookTokenIsValid(String validityToken)
AccessToken
getAccessToken(String codeVerifier, String authorizationCode, String clientId, Secret clientSecret)
String
getProviderIssuer()
List<com.auth0.jwk.Jwk>
getSigningKeys()
UserInfo
getUserInfo(AccessToken accessToken)
AccessToken
refreshToken(AccessToken accessToken, String clientId, Secret clientSecret)
-
-
-
Field Detail
-
LOGGER
public static final Logger LOGGER
-
-
Constructor Detail
-
TuleapAuthenticationApiAuthenticationClient
@Inject public TuleapAuthenticationApiAuthenticationClient(PluginHelper pluginHelper, okhttp3.OkHttpClient client, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.auth0.jwk.UrlJwkProvider jwkProvider, TuleapConfiguration tuleapConfiguration, HeaderAuthenticationValidator headerAuthenticationValidator, AccessTokenValidator accessTokenValidator, UserInfoValidator userInfoValidator)
-
-
Method Detail
-
getAccessToken
public AccessToken getAccessToken(String codeVerifier, String authorizationCode, String clientId, Secret clientSecret)
- Specified by:
getAccessToken
in interfaceAccessTokenApi
-
refreshToken
public AccessToken refreshToken(AccessToken accessToken, String clientId, Secret clientSecret)
- Specified by:
refreshToken
in interfaceAccessTokenApi
-
getSigningKeys
public List<com.auth0.jwk.Jwk> getSigningKeys()
- Specified by:
getSigningKeys
in interfaceOpenIDClientApi
-
getUserInfo
public UserInfo getUserInfo(AccessToken accessToken)
- Specified by:
getUserInfo
in interfaceOpenIDClientApi
-
getProviderIssuer
public String getProviderIssuer()
- Specified by:
getProviderIssuer
in interfaceOpenIDClientApi
-
checkWebhookTokenIsValid
public boolean checkWebhookTokenIsValid(String validityToken)
- Specified by:
checkWebhookTokenIsValid
in interfaceWebhookTokenApi
-
-