Class PluginHelperImpl
- java.lang.Object
-
- io.jenkins.plugins.tuleap_oauth.helper.PluginHelperImpl
-
- All Implemented Interfaces:
PluginHelper
public class PluginHelperImpl extends Object implements PluginHelper
-
-
Constructor Summary
Constructors Constructor Description PluginHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildRandomBase64EncodedURLSafeString()com.auth0.jwt.algorithms.AlgorithmgetAlgorithm(com.auth0.jwk.Jwk jwk)io.jenkins.plugins.tuleap_server_configuration.TuleapConfigurationgetConfiguration()org.springframework.security.core.AuthenticationgetCurrentUserAuthenticationToken()JenkinsgetJenkinsInstance()okhttp3.ResponseBodygetResponseBody(okhttp3.Response response)UsergetUser(String username)booleanisHttpsUrl(String url)
-
-
-
Method Detail
-
getJenkinsInstance
public Jenkins getJenkinsInstance()
- Specified by:
getJenkinsInstancein interfacePluginHelper
-
getConfiguration
public io.jenkins.plugins.tuleap_server_configuration.TuleapConfiguration getConfiguration()
- Specified by:
getConfigurationin interfacePluginHelper
-
buildRandomBase64EncodedURLSafeString
public String buildRandomBase64EncodedURLSafeString()
- Specified by:
buildRandomBase64EncodedURLSafeStringin interfacePluginHelper
-
getAlgorithm
public com.auth0.jwt.algorithms.Algorithm getAlgorithm(com.auth0.jwk.Jwk jwk) throws com.auth0.jwk.InvalidPublicKeyException- Specified by:
getAlgorithmin interfacePluginHelper- Throws:
com.auth0.jwk.InvalidPublicKeyException
-
isHttpsUrl
public boolean isHttpsUrl(String url)
- Specified by:
isHttpsUrlin interfacePluginHelper
-
getResponseBody
public okhttp3.ResponseBody getResponseBody(okhttp3.Response response) throws IOException- Specified by:
getResponseBodyin interfacePluginHelper- Throws:
IOException
-
getCurrentUserAuthenticationToken
public org.springframework.security.core.Authentication getCurrentUserAuthenticationToken()
- Specified by:
getCurrentUserAuthenticationTokenin interfacePluginHelper
-
getUser
public User getUser(String username)
- Specified by:
getUserin interfacePluginHelper
-
-