com.atlassian.bamboo.security.trustedapplications
Class KeyUtils

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

public class KeyUtils
extends java.lang.Object


Nested Class Summary
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.
 
Constructor Summary
KeyUtils()
           
 
Method Summary
static java.security.PrivateKey decodePrivateKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, java.lang.String keyStr)
           
static java.security.PublicKey decodePublicKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, java.lang.String keyStr)
           
static java.lang.String encode(java.security.Key key)
           
static java.security.KeyPair generateNewKeyPair(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyUtils

public KeyUtils()
Method Detail

generateNewKeyPair

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

encode

public static java.lang.String encode(java.security.Key key)

decodePrivateKey

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

decodePublicKey

public static java.security.PublicKey decodePublicKey(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider,
                                                      java.lang.String keyStr)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.