java.lang.Object
com.atlassian.bamboo.security.trustedapplications.KeyUtils

public final class KeyUtils extends Object
  • Method Details

    • generateNewKeyPair

      public static KeyPair generateNewKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
    • encode

      public static String encode(Key key)
    • decodePrivateKey

      public static PrivateKey decodePrivateKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr)
    • decodePublicKey

      public static PublicKey decodePublicKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr)
    • 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.