1 /* 2 * Copyright 2013 smartics, Kronseder & Reiner GmbH 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package de.smartics.properties.security.esapi; 17 18 import org.owasp.esapi.ESAPI; 19 import org.owasp.esapi.Encryptor; 20 21 /** 22 * Implementation bases on OWASP ESAPI. 23 * <p> 24 * Please refer to <a href= 25 * "http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/esapi4java-core-2.0-symmetric-crypto-user-guide.html" 26 * >ESAPI 2.0 Symmetric Encryption User Guide</a> for configuration details. 27 * </p> 28 */ 29 public class EsapiPropertyValueSecurity extends 30 AbstractEsapiPropertyValueSecurity 31 { 32 // ********************************* Fields ********************************* 33 34 // --- constants ------------------------------------------------------------ 35 36 /** 37 * The class version identifier. 38 */ 39 private static final long serialVersionUID = 1L; 40 41 // --- members -------------------------------------------------------------- 42 43 // ****************************** Initializer ******************************* 44 45 // ****************************** Constructors ****************************** 46 47 /** 48 * Default constructor. 49 */ 50 public EsapiPropertyValueSecurity() 51 { 52 } 53 54 // ****************************** Inner Classes ***************************** 55 56 // ********************************* Methods ******************************** 57 58 // --- init ----------------------------------------------------------------- 59 60 // --- get&set -------------------------------------------------------------- 61 62 // --- business ------------------------------------------------------------- 63 64 @Override 65 protected Encryptor provideEncryptor() 66 { 67 return ESAPI.encryptor(); 68 } 69 70 // --- object basics -------------------------------------------------------- 71 72 }