Class BaseCredentialsCLICommand
- java.lang.Object
-
- hudson.cli.CLICommand
-
- com.cloudbees.plugins.credentials.cli.BaseCredentialsCLICommand
-
- All Implemented Interfaces:
ExtensionPoint
,Cloneable
- Direct Known Subclasses:
CreateCredentialsByXmlCommand
,CreateCredentialsDomainByXmlCommand
,DeleteCredentialsCommand
,DeleteCredentialsDomainCommand
,GetCredentialsAsXmlCommand
,GetCredentialsDomainAsXmlCommand
,ImportCredentialsAsXmlCommand
,ListCredentialsAsXmlCommand
,ListCredentialsCommand
,ListCredentialsContextResolversCommand
,ListCredentialsProvidersCommand
,UpdateCredentialsByXmlCommand
,UpdateCredentialsDomainByXmlCommand
public abstract class BaseCredentialsCLICommand extends CLICommand
Base class for the Credentials CLI commands.- Since:
- 2.1.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BaseCredentialsCLICommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Credentials
getCredentialsById(CredentialsStore store, Domain domain, String id)
protected static Domain
getDomainByName(CredentialsStore store, String domain)
protected static com.thoughtworks.xstream.io.HierarchicalStreamReader
safeXmlStreamReader(InputStream stream)
protected static com.thoughtworks.xstream.io.HierarchicalStreamReader
safeXmlStreamReader(Source source)
-
Methods inherited from class hudson.cli.CLICommand
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCmdLineParser, getCurrent, getLongDescription, getName, getShortDescription, getSingleLineSummary, getTransportAuthentication, getTransportAuthentication2, getUsage, main, printUsage, printUsageSummary, registerOptionHandlers, run, setClientCharset, setTransportAuth, setTransportAuth2
-
-
-
-
Method Detail
-
getCredentialsById
protected static Credentials getCredentialsById(CredentialsStore store, Domain domain, String id)
-
getDomainByName
protected static Domain getDomainByName(CredentialsStore store, String domain)
-
safeXmlStreamReader
protected static com.thoughtworks.xstream.io.HierarchicalStreamReader safeXmlStreamReader(InputStream stream) throws IOException
- Throws:
IOException
-
safeXmlStreamReader
protected static com.thoughtworks.xstream.io.HierarchicalStreamReader safeXmlStreamReader(Source source) throws IOException
- Throws:
IOException
-
-