Class KeyUtils
java.lang.Object
com.atlassian.bamboo.security.trustedapplications.KeyUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
If there are problems creating a key, one of these will be returned instead.static class
If there are problems creating a key, one of these will be returned instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull KeyPair
decodeKeyPair
(@NotNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, @NotNull String publicKeyStr, @NotNull String privateKeyStr) Decodes a key pair from two Base 64 encoded representations.static PrivateKey
decodePrivateKey
(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr) static PublicKey
decodePublicKey
(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr) static String
static KeyPair
generateNewKeyPair
(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
-
Method Details
-
generateNewKeyPair
public static KeyPair generateNewKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) -
encode
-
decodePrivateKey
public static PrivateKey decodePrivateKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr) -
decodePublicKey
-
decodeKeyPair
@NotNull public static @NotNull KeyPair decodeKeyPair(@NotNull @NotNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, @NotNull @NotNull String publicKeyStr, @NotNull @NotNull String privateKeyStr) Decodes a key pair from two Base 64 encoded representations. Throws IllegalArgumentException on error.
-