de.smartics.properties.tutorial.config.encrypted
Class EncryptedPropertyValueTutorial

Package class diagram package EncryptedPropertyValueTutorial
java.lang.Object
  extended by de.smartics.properties.tutorial.config.encrypted.EncryptedPropertyValueTutorial

@Document(title="Encrypting Property Values",
          sortKey="basics1200")
@DocCategory(value="basics")
public class EncryptedPropertyValueTutorial
     
     
extends Object

This tutorial shows how property values can be encrypted.


Constructor Summary
EncryptedPropertyValueTutorial()
           
 
Method Summary
 void accessEncryptedPropertyValues()
          The security implementation to en- and decrypt values is configured via the service API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedPropertyValueTutorial

public EncryptedPropertyValueTutorial()
Method Detail

accessEncryptedPropertyValues

@DocChapter
public void accessEncryptedPropertyValues()
The security implementation to en- and decrypt values is configured via the service API. Therefore there is a file named
 META-INF/services/de.smartics.properties.api.core.security.PropertyValueSecurity
 
that contains the following information
 de.smartics.properties.api.core.security.PropertiesBasedPropertyValueSecurity
 

The implementation requires to configure

 META-INF/smartics-properties/security.properties
 

like this

de.smartics.properties.security.provider=
de.smartics.properties.security.transformation=AES/ECB/PKCS5Padding
de.smartics.properties.security.key=+pvrmeQCmtWmYVOZ57uuIQ==
de.smartics.properties.security.algorithm=AES

Now let's have a look how we can access encrypted information.



Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.