Class JiraEncryptor

java.lang.Object
com.atlassian.jira.crowd.embedded.encryptors.JiraEncryptor
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.Encryptor, com.atlassian.crowd.embedded.api.SwitchableEncryptor

public class JiraEncryptor extends Object implements com.atlassian.crowd.embedded.api.SwitchableEncryptor
  • Constructor Details

    • JiraEncryptor

      public JiraEncryptor(com.atlassian.crowd.manager.property.EncryptionSettings settings, com.atlassian.beehive.ClusterLockService clusterLockService, ConcreteEncryptorsFactory encryptorsFactory)
  • Method Details

    • switchEncryptor

      public void switchEncryptor(String encryptorKey)
      Specified by:
      switchEncryptor in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
    • getAvailableEncryptorKeys

      public Collection<String> getAvailableEncryptorKeys()
      Specified by:
      getAvailableEncryptorKeys in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
    • getCurrentEncryptorKey

      public Optional<String> getCurrentEncryptorKey()
      Specified by:
      getCurrentEncryptorKey in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
    • encrypt

      public String encrypt(String password)
      Specified by:
      encrypt in interface com.atlassian.crowd.embedded.api.Encryptor
    • decrypt

      public String decrypt(String encryptedPassword)
      Specified by:
      decrypt in interface com.atlassian.crowd.embedded.api.Encryptor
    • changeEncryptionKey

      public boolean changeEncryptionKey()
      Specified by:
      changeEncryptionKey in interface com.atlassian.crowd.embedded.api.Encryptor