Package com.atlassian.bamboo.utils
Class RsaOpenSshKeysProvider
- java.lang.Object
-
- com.atlassian.bamboo.utils.RsaOpenSshKeysProvider
-
- All Implemented Interfaces:
SshKeysProvider
public class RsaOpenSshKeysProvider extends Object implements 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
Constructors Constructor Description RsaOpenSshKeysProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshKeysProvider.KeyPair
getKeyPair(String userComment)
-
-
-
Constructor Detail
-
RsaOpenSshKeysProvider
public RsaOpenSshKeysProvider() throws NoSuchProviderException, NoSuchAlgorithmException
-
-
Method Detail
-
getKeyPair
public SshKeysProvider.KeyPair getKeyPair(String userComment) throws KeyGenerationException
- Specified by:
getKeyPair
in interfaceSshKeysProvider
- Parameters:
userComment
- - comment added to the public key- Returns:
- a key pair
- Throws:
KeyGenerationException
- if key generation fails
-
-