Class BasicSSHUserPrivateKey.DirectEntryPrivateKeySource
java.lang.Object
hudson.model.AbstractDescribableImpl<BasicSSHUserPrivateKey.PrivateKeySource>
com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.PrivateKeySource
com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.DirectEntryPrivateKeySource
- All Implemented Interfaces:
Describable<BasicSSHUserPrivateKey.PrivateKeySource>
,Serializable
- Enclosing class:
- BasicSSHUserPrivateKey
public static class BasicSSHUserPrivateKey.DirectEntryPrivateKeySource
extends BasicSSHUserPrivateKey.PrivateKeySource
implements Serializable
Let the user enter the key directly via copy & paste
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Descriptor for aBasicSSHUserPrivateKey.PrivateKeySource
-
Constructor Summary
ConstructorDescriptionDirectEntryPrivateKeySource
(Secret privateKey) DirectEntryPrivateKeySource
(String privateKey) DirectEntryPrivateKeySource
(List<String> privateKeys) -
Method Summary
Modifier and TypeMethodDescriptionReturns the private key.Gets the private key from the sourceboolean
Returnstrue
if and only if the source is self contained.Methods inherited from class com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.PrivateKeySource
getPrivateKeysLastModified
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
DirectEntryPrivateKeySource
-
DirectEntryPrivateKeySource
-
DirectEntryPrivateKeySource
-
-
Method Details
-
getPrivateKeys
Gets the private key from the source- Specified by:
getPrivateKeys
in classBasicSSHUserPrivateKey.PrivateKeySource
-
getPrivateKey
Returns the private key.- Returns:
- the private key.
-
isSnapshotSource
public boolean isSnapshotSource()Returnstrue
if and only if the source is self contained.- Overrides:
isSnapshotSource
in classBasicSSHUserPrivateKey.PrivateKeySource
- Returns:
true
if and only if the source is self contained.
-