public final class KeyUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KeyUtils.InvalidKey |
static class |
KeyUtils.InvalidPrivateKey
If there are problems creating a key, one of these will be returned instead.
|
static class |
KeyUtils.InvalidPublicKey
If there are problems creating a key, one of these will be returned instead.
|
Modifier and Type | Method and Description |
---|---|
static @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 |
encode(Key key) |
static KeyPair |
generateNewKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider) |
public static KeyPair generateNewKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
public static PrivateKey decodePrivateKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr)
public static PublicKey decodePublicKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, String keyStr)
@NotNull public static @NotNull KeyPair decodeKeyPair(@NotNull @NotNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, @NotNull @NotNull String publicKeyStr, @NotNull @NotNull String privateKeyStr)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.