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 String
buildRandomBase64EncodedURLSafeString()
com.auth0.jwt.algorithms.Algorithm
getAlgorithm(com.auth0.jwk.Jwk jwk)
io.jenkins.plugins.tuleap_server_configuration.TuleapConfiguration
getConfiguration()
org.springframework.security.core.Authentication
getCurrentUserAuthenticationToken()
Jenkins
getJenkinsInstance()
okhttp3.ResponseBody
getResponseBody(okhttp3.Response response)
User
getUser(String username)
boolean
isHttpsUrl(String url)
-
-
-
Method Detail
-
getJenkinsInstance
public Jenkins getJenkinsInstance()
- Specified by:
getJenkinsInstance
in interfacePluginHelper
-
getConfiguration
public io.jenkins.plugins.tuleap_server_configuration.TuleapConfiguration getConfiguration()
- Specified by:
getConfiguration
in interfacePluginHelper
-
buildRandomBase64EncodedURLSafeString
public String buildRandomBase64EncodedURLSafeString()
- Specified by:
buildRandomBase64EncodedURLSafeString
in interfacePluginHelper
-
getAlgorithm
public com.auth0.jwt.algorithms.Algorithm getAlgorithm(com.auth0.jwk.Jwk jwk) throws com.auth0.jwk.InvalidPublicKeyException
- Specified by:
getAlgorithm
in interfacePluginHelper
- Throws:
com.auth0.jwk.InvalidPublicKeyException
-
isHttpsUrl
public boolean isHttpsUrl(String url)
- Specified by:
isHttpsUrl
in interfacePluginHelper
-
getResponseBody
public okhttp3.ResponseBody getResponseBody(okhttp3.Response response) throws IOException
- Specified by:
getResponseBody
in interfacePluginHelper
- Throws:
IOException
-
getCurrentUserAuthenticationToken
public org.springframework.security.core.Authentication getCurrentUserAuthenticationToken()
- Specified by:
getCurrentUserAuthenticationToken
in interfacePluginHelper
-
getUser
public User getUser(String username)
- Specified by:
getUser
in interfacePluginHelper
-
-