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 KeyPair |
decodeKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider,
String publicKeyStr,
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 KeyPair decodeKeyPair(@NotNull com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, @NotNull String publicKeyStr, @NotNull String privateKeyStr)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.