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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicSSHUserPrivateKey.DirectEntryPrivateKeySource.DescriptorImpl
Descriptor for aBasicSSHUserPrivateKey.PrivateKeySource
-
Constructor Summary
Constructors Constructor Description DirectEntryPrivateKeySource(Secret privateKey)
DirectEntryPrivateKeySource(String privateKey)
DirectEntryPrivateKeySource(List<String> privateKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Secret
getPrivateKey()
Returns the private key.List<String>
getPrivateKeys()
Gets the private key from the sourceboolean
isSnapshotSource()
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
-
-
-
-
Method Detail
-
getPrivateKeys
@NonNull public List<String> getPrivateKeys()
Gets the private key from the source- Specified by:
getPrivateKeys
in classBasicSSHUserPrivateKey.PrivateKeySource
-
getPrivateKey
public Secret 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.
-
-