Package io.snyk.jenkins.credentials
Interface SnykApiToken
-
- All Superinterfaces:
com.cloudbees.plugins.credentials.Credentials
,Describable<com.cloudbees.plugins.credentials.Credentials>
,ExtensionPoint
,com.cloudbees.plugins.credentials.common.IdCredentials
,Serializable
,com.cloudbees.plugins.credentials.common.StandardCredentials
- All Known Implementing Classes:
DefaultSnykApiToken
@NameWith(value=NameProvider.class, priority=1) public interface SnykApiToken extends com.cloudbees.plugins.credentials.common.StandardCredentials
A Snyk personal API token.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SnykApiToken.NameProvider
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
SNYK_TOKEN_ENV_KEY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Secret
getToken()
static String
getToken(SnykContext context, String snykTokenId)
-
-
-
Field Detail
-
SNYK_TOKEN_ENV_KEY
static final String SNYK_TOKEN_ENV_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getToken
@Nonnull Secret getToken()
-
getToken
static String getToken(SnykContext context, String snykTokenId)
-
-