com.atlassian.crowd.upgrade.tasks
Class UpgradeTask114

java.lang.Object
  extended by com.atlassian.crowd.upgrade.tasks.UpgradeTask114
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask114
extends java.lang.Object
implements UpgradeTask

This upgrade task will migrate all current Applications configured in Crowd from using DES to using the Atlassian SHA1 encryption algorithm


Constructor Summary
UpgradeTask114()
           
 
Method Summary
protected  java.lang.String decryptCredential(java.lang.String encryptedCredential)
           
 void doUpgrade()
          Perform the upgrade.
 java.lang.String getBuildNumber()
           
 java.util.Collection getErrors()
          Any errors that occur during the upgrade process will be added to this Collection as Strings.
 java.lang.String getShortDescription()
          A short (<50 chars) description of the upgrade action
 void setApplicationManager(ApplicationManager applicationManager)
           
 void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)
           
 void setPropertyManager(PropertyManager propertyManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask114

public UpgradeTask114()
Method Detail

getBuildNumber

public java.lang.String getBuildNumber()
Specified by:
getBuildNumber in interface UpgradeTask
Returns:
The build number that this upgrade is applicable to.

getShortDescription

public java.lang.String getShortDescription()
Description copied from interface: UpgradeTask
A short (<50 chars) description of the upgrade action

Specified by:
getShortDescription in interface UpgradeTask
Returns:
description of upgrade task.

doUpgrade

public void doUpgrade()
               throws java.lang.Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Specified by:
doUpgrade in interface UpgradeTask
Throws:
java.lang.Exception - is thrown if any errors occur during the upgrade process.

decryptCredential

protected java.lang.String decryptCredential(java.lang.String encryptedCredential)
                                      throws PropertyManagerException,
                                             java.io.IOException,
                                             java.security.GeneralSecurityException
Throws:
PropertyManagerException
java.io.IOException
java.security.GeneralSecurityException

getErrors

public java.util.Collection getErrors()
Description copied from interface: UpgradeTask
Any errors that occur during the upgrade process will be added to this Collection as Strings.

Specified by:
getErrors in interface UpgradeTask
Returns:
a Collection of errors. This may return an empty Collection.

setApplicationManager

public void setApplicationManager(ApplicationManager applicationManager)

setPropertyManager

public void setPropertyManager(PropertyManager propertyManager)

setPasswordEncoderFactory

public void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)


Copyright © 2010 Atlassian. All Rights Reserved.