C.C.
Here is the link stating current California law: http://www.dca.ca.gov/publications/landlordbook/catenant.pdf
Page 53 lists the 4 reasons a Landlord can use your security deposit:
1) To cover unpaid rent
2) To clean the unit to a state that is as clean as it was when you moved in
3) To make repairs OTHER THAN normal wear and tear, caused by you or your guests
4) To repair or restore furniture, furnishings, keys, etc, IF THE LEASE PROVIDES FOR THIS
These are the ONLY 4 reasons a Landlord can keep all or part of your security deposit, per California law. Your landlord must refund your deposit in full within 21 days, or otherwise provide you with an itemized, written statement detailing why it was not refunded in full, within that time frame. Read the link for more information.