Package io.snyk.jenkins.credentials
Class DefaultSnykApiToken
- java.lang.Object
-
- com.cloudbees.plugins.credentials.BaseCredentials
-
- com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
-
- io.snyk.jenkins.credentials.DefaultSnykApiToken
-
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials
,com.cloudbees.plugins.credentials.common.StandardCredentials
,com.cloudbees.plugins.credentials.Credentials
,ExtensionPoint
,Describable<com.cloudbees.plugins.credentials.Credentials>
,SnykApiToken
,Serializable
public class DefaultSnykApiToken extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements SnykApiToken
Default implementation ofSnykApiToken
for use by JenkinsCredentialsProvider
instances that storeSecret
locally.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultSnykApiToken.DefaultSnykApiTokenDescriptor
-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
-
Nested classes/interfaces inherited from interface io.snyk.jenkins.credentials.SnykApiToken
SnykApiToken.NameProvider
-
-
Field Summary
-
Fields inherited from interface io.snyk.jenkins.credentials.SnykApiToken
SNYK_TOKEN_ENV_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultSnykApiToken(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret
getToken()
-
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCode
-
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getToken
@Nonnull public Secret getToken()
- Specified by:
getToken
in interfaceSnykApiToken
-
-