de.smartics.properties.admin.resources.controller
Class SecurityResource

Package class diagram package SecurityResource
java.lang.Object
  extended by de.smartics.properties.admin.resources.controller.SecurityResource

@Path(value="")
public class SecurityResource
     
     
extends Object

Provides access to en- and decrypt.


Constructor Summary
SecurityResource()
           
 
Method Summary
 Security getAsHtml(String plainValue, String encryptedValue)
          Returns the encrypted or decrypted text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityResource

public SecurityResource()
Method Detail

getAsHtml

@GET
@POST
@Path(value="/security")
@Produces(value="text/html")
public Security getAsHtml(@FormParam(value="encrypt")
                                                 String plainValue,
                                                 @FormParam(value="decrypt")
                                                 String encryptedValue)
Returns the encrypted or decrypted text. Provides the empty HTML form if both values are null.

Parameters:
plainValue - the optional value to be encrypted.
encryptedValue - the optional value to be decrypted. Only used if plainValue is null.
Returns:
the HTML representation.


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