Class WebhookBasicSSHUserPrivateKeyCredentialConverter
java.lang.Object
io.jenkins.plugins.webhookexternalstore.converters.WebhookToCredentialConverter
io.jenkins.plugins.webhookexternalstore.converters.WebhookBasicSSHUserPrivateKeyCredentialConverter
- All Implemented Interfaces:
ExtensionPoint
@OptionalExtension(requirePlugins="ssh-credentials")
public class WebhookBasicSSHUserPrivateKeyCredentialConverter
extends WebhookToCredentialConverter
Converter for string/token credentials using "secretText" type and
BasicSSHUserPrivateKey.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(String type) Determine if this converter can convert the webhook payload to a credential.com.cloudbees.plugins.credentials.common.IdCredentialsconvert(WebhookPayload payload) Convert the webhook payload to a credential.Methods inherited from class io.jenkins.plugins.webhookexternalstore.converters.WebhookToCredentialConverter
all, convertFromPayload, lookup
-
Constructor Details
-
WebhookBasicSSHUserPrivateKeyCredentialConverter
public WebhookBasicSSHUserPrivateKeyCredentialConverter()
-
-
Method Details
-
canConvert
Description copied from class:WebhookToCredentialConverterDetermine if this converter can convert the webhook payload to a credential.- Specified by:
canConvertin classWebhookToCredentialConverter- Parameters:
type- the credential type from the webhook payload- Returns:
- true if this converter can handle this type
-
convert
public com.cloudbees.plugins.credentials.common.IdCredentials convert(WebhookPayload payload) throws CredentialsConvertionException Description copied from class:WebhookToCredentialConverterConvert the webhook payload to a credential.- Specified by:
convertin classWebhookToCredentialConverter- Parameters:
payload- the webhook payload- Returns:
- the converted credential
- Throws:
CredentialsConvertionException- if conversion fails
-