public class JiraEncryptor extends Object implements com.atlassian.crowd.embedded.api.SwitchableEncryptor
Constructor and Description |
---|
JiraEncryptor(com.atlassian.crowd.manager.property.EncryptionSettings settings,
com.atlassian.beehive.ClusterLockService clusterLockService,
ConcreteEncryptorsFactory encryptorsFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
changeEncryptionKey() |
String |
decrypt(String encryptedPassword) |
String |
encrypt(String password) |
Collection<String> |
getAvailableEncryptorKeys() |
Optional<String> |
getCurrentEncryptorKey() |
void |
switchEncryptor(String encryptorKey) |
public JiraEncryptor(com.atlassian.crowd.manager.property.EncryptionSettings settings, com.atlassian.beehive.ClusterLockService clusterLockService, ConcreteEncryptorsFactory encryptorsFactory)
public void switchEncryptor(String encryptorKey)
switchEncryptor
in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
public Collection<String> getAvailableEncryptorKeys()
getAvailableEncryptorKeys
in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
public Optional<String> getCurrentEncryptorKey()
getCurrentEncryptorKey
in interface com.atlassian.crowd.embedded.api.SwitchableEncryptor
public String encrypt(String password)
encrypt
in interface com.atlassian.crowd.embedded.api.Encryptor
public String decrypt(String encryptedPassword)
decrypt
in interface com.atlassian.crowd.embedded.api.Encryptor
public boolean changeEncryptionKey()
changeEncryptionKey
in interface com.atlassian.crowd.embedded.api.Encryptor
Copyright © 2002-2021 Atlassian. All Rights Reserved.