Interface UpgradeablePasswordEncoder

All Superinterfaces:
PasswordEncoder
All Known Implementing Classes:
AtlassianSecurityPasswordEncoder

public interface UpgradeablePasswordEncoder extends PasswordEncoder
Password encoder which provides a way to ask if the password should be re-encoded as it does not match the encoding format of the most secure underlying encoder.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if the password should be re-encoded as it does not match the encoding format of the most secure underlying encoder.

    Methods inherited from interface com.atlassian.crowd.password.encoder.PasswordEncoder

    encodePassword, getKey, isPasswordValid
  • Method Details

    • isUpgradeRequired

      boolean isUpgradeRequired(String encPass)
      Return true if the password should be re-encoded as it does not match the encoding format of the most secure underlying encoder.
      Parameters:
      encPass - a pre-encoded password
      Returns:
      true if the password should be re-encoded.