Package com.atlassian.bamboo.utils
Class RsaOpenSshKeysProvider
java.lang.Object
com.atlassian.bamboo.utils.RsaOpenSshKeysProvider
- All Implemented Interfaces:
SshKeysProvider
Utility class for generation openssh compatible key pair
Generated keys are RSA keys. The key strength is currently hardcoded to 2048 bits
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.utils.SshKeysProvider
SshKeysProvider.KeyPair
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RsaOpenSshKeysProvider
-
-
Method Details
-
getKeyPair
- Specified by:
getKeyPair
in interfaceSshKeysProvider
- Parameters:
userComment
- - comment added to the public key- Returns:
- a key pair
- Throws:
KeyGenerationException
- if key generation fails
-