Class UpdateOAuth2PolicySetsStep

  • All Implemented Interfaces:
    UpgradeStep

    public class UpdateOAuth2PolicySetsStep
    extends AbstractUpgradeStep
    Policy Sets created by OpenAM 13.0.0 for OAuth2 were missing the list of allowed/accepted subjects and conditions. This upgrade step will enable all currently supported subjects and conditions on any existing policy set called OAuth2 that has not been configured with supported subjects or conditions. By upgrading the Policy Sets we ensure that the XUI policy editor is able to display policies utilizing previously corrupted policies.
    • Method Detail

      • isApplicable

        public boolean isApplicable()
        Description copied from interface: UpgradeStep
        Tells whether this given upgrade step is applicable for this version/configuration of OpenAM.
        Returns:
        true if this upgrade step needs to be performed.
      • initialize

        public void initialize()
                        throws UpgradeException
        Description copied from interface: UpgradeStep
        Initializes the upgrade step during which it determines what sort of changes needs to be applied to the configurationif any.
        Throws:
        UpgradeException - If there was an error while determining the required changes.
      • perform

        public void perform()
                     throws UpgradeException
        Description copied from interface: UpgradeStep
        Performs the required changes for this upgrade step.
        Throws:
        UpgradeException - If there was an error while upgrading the configuration.
      • getShortReport

        public String getShortReport​(String delimiter)
        Description copied from interface: UpgradeStep
        Returns a short report for this upgrade step that should be suitable for the upgrade screen.
        Parameters:
        delimiter - The delimiter to use between lines.
        Returns:
        The short upgrade report.
      • getDetailedReport

        public String getDetailedReport​(String delimiter)
        Description copied from interface: UpgradeStep
        Generates a detailed upgrade report suitable for reviewing changes.
        Parameters:
        delimiter - The delimiter to use between lines.
        Returns:
        The detailed upgrade report.