Package com.atlassian.crowd.crypto
Class EncryptingPropertyDAO
java.lang.Object
com.atlassian.crowd.crypto.EncryptingPropertyDAO
- All Implemented Interfaces:
PropertyDAO,DataReEncryptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new property.Finds property by key and name.findAll()Retrieves all properties.Finds properties by key.voidvoidRemoves a property.voidsetDelegate(PropertyDAO delegate) voidsetEncryptor(PropertyEncryptor encryptor) Updates a property.
-
Constructor Details
-
EncryptingPropertyDAO
public EncryptingPropertyDAO()
-
-
Method Details
-
setDelegate
-
setEncryptor
-
find
Description copied from interface:PropertyDAOFinds property by key and name.- Specified by:
findin interfacePropertyDAO- Parameters:
key- Key.name- Name.- Returns:
- Property.
- Throws:
ObjectNotFoundException- If the property cannot be found.
-
findAll
Description copied from interface:PropertyDAOFinds properties by key.- Specified by:
findAllin interfacePropertyDAO- Parameters:
key- Key.- Returns:
- List of properties
-
add
Description copied from interface:PropertyDAOAdds a new property.- Specified by:
addin interfacePropertyDAO- Parameters:
property- Property.- Returns:
- The saved property.
-
update
Description copied from interface:PropertyDAOUpdates a property.- Specified by:
updatein interfacePropertyDAO- Parameters:
property- Property.- Returns:
- The updated property.
-
remove
Description copied from interface:PropertyDAORemoves a property.- Specified by:
removein interfacePropertyDAO- Parameters:
key- Key.name- Name.
-
findAll
Description copied from interface:PropertyDAORetrieves all properties.- Specified by:
findAllin interfacePropertyDAO- Returns:
- the list of properties.
-
reEncrypt
public void reEncrypt()- Specified by:
reEncryptin interfaceDataReEncryptor
-