Class ScanCredentialsHelper
java.lang.Object
io.jenkins.plugins.synopsys.security.scan.global.ScanCredentialsHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.cloudbees.plugins.credentials.CredentialsMatcher
static final Class<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl>
static final com.cloudbees.plugins.credentials.CredentialsMatcher
static final Class<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApiTokenByCredentialsId
(String credentialsId) Optional<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl>
getApiTokenCredentialsById
(String credentialsId) <T extends com.cloudbees.plugins.credentials.Credentials>
Optional<T>getCredentialsById
(Class<T> credentialsType, String credentialsId) getPasswordByCredentialsId
(String credentialsId) getUsernameByCredentialsId
(String credentialsId) Optional<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl>
getUsernamePasswordCredentialsById
(String credentialsId)
-
Field Details
-
API_TOKEN_CREDENTIALS_CLASS
public static final Class<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl> API_TOKEN_CREDENTIALS_CLASS -
API_TOKEN_CREDENTIALS
public static final com.cloudbees.plugins.credentials.CredentialsMatcher API_TOKEN_CREDENTIALS -
USERNAME_PASSWORD_CREDENTIALS_CLASS
public static final Class<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> USERNAME_PASSWORD_CREDENTIALS_CLASS -
USERNAME_PASSWORD_CREDENTIALS
public static final com.cloudbees.plugins.credentials.CredentialsMatcher USERNAME_PASSWORD_CREDENTIALS
-
-
Constructor Details
-
ScanCredentialsHelper
public ScanCredentialsHelper()
-
-
Method Details
-
getApiTokenByCredentialsId
-
getUsernameByCredentialsId
-
getPasswordByCredentialsId
-
getUsernamePasswordCredentialsById
-
getApiTokenCredentialsById
-
getCredentialsById
-