Package com.atlassian.crowd.crypto
Class EncryptingPropertyDAO
java.lang.Object
com.atlassian.crowd.crypto.EncryptingPropertyDAO
- All Implemented Interfaces:
PropertyDAO
,DataReEncryptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new property.Finds property by key and name.findAll()
Retrieves all properties.Finds properties by key.void
Encrypts or re-encrypts existing data.void
Removes a property.void
setDelegate
(PropertyDAO delegate) void
setEncryptor
(PropertyEncryptor encryptor) Updates a property.
-
Constructor Details
-
EncryptingPropertyDAO
public EncryptingPropertyDAO()
-
-
Method Details
-
setDelegate
-
setEncryptor
-
find
Description copied from interface:PropertyDAO
Finds property by key and name.- Specified by:
find
in interfacePropertyDAO
- Parameters:
key
- Key.name
- Name.- Returns:
- Property.
- Throws:
ObjectNotFoundException
- If the property cannot be found.
-
findAll
Description copied from interface:PropertyDAO
Finds properties by key.- Specified by:
findAll
in interfacePropertyDAO
- Parameters:
key
- Key.- Returns:
- List of properties
-
add
Description copied from interface:PropertyDAO
Adds a new property.- Specified by:
add
in interfacePropertyDAO
- Parameters:
property
- Property.- Returns:
- The saved property.
-
update
Description copied from interface:PropertyDAO
Updates a property.- Specified by:
update
in interfacePropertyDAO
- Parameters:
property
- Property.- Returns:
- The updated property.
-
remove
Description copied from interface:PropertyDAO
Removes a property.- Specified by:
remove
in interfacePropertyDAO
- Parameters:
key
- Key.name
- Name.
-
findAll
Description copied from interface:PropertyDAO
Retrieves all properties.- Specified by:
findAll
in interfacePropertyDAO
- Returns:
- the list of properties.
-
reEncrypt
public void reEncrypt()Description copied from interface:DataReEncryptor
Encrypts or re-encrypts existing data.- Specified by:
reEncrypt
in interfaceDataReEncryptor
-