Project Wonder 5.0

er.extensions.foundation
Class ERXProperties.EncryptedOperator

java.lang.Object
  extended by er.extensions.foundation.ERXProperties.EncryptedOperator
All Implemented Interfaces:
ERXProperties.Operator
Enclosing class:
ERXProperties

public static class ERXProperties.EncryptedOperator
extends java.lang.Object
implements ERXProperties.Operator

Encrypted operator supports decrypting values using the default crypter. To register this operator, add the following static block to your Application class:

static { ERXProperties.setOperatorForKey(new ERXProperties.EncryptedOperator(), ERXProperties.EncryptedOperator.Key); } Call er.extensions.ERXProperties.EncryptedOperator.register() in an Application static block to register this operator.

Author:
mschrag

Field Summary
static java.lang.String Key
           
 
Constructor Summary
ERXProperties.EncryptedOperator()
           
 
Method Summary
 com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.String> compute(java.lang.String key, java.lang.String value, java.lang.String parameters)
          Performs some computation on the key, value, and parameters and returns a dictionary of new properties.
static void register()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Key

public static final java.lang.String Key
See Also:
Constant Field Values
Constructor Detail

ERXProperties.EncryptedOperator

public ERXProperties.EncryptedOperator()
Method Detail

register

public static void register()

compute

public com.webobjects.foundation.NSDictionary<java.lang.String,java.lang.String> compute(java.lang.String key,
                                                                                         java.lang.String value,
                                                                                         java.lang.String parameters)
Description copied from interface: ERXProperties.Operator
Performs some computation on the key, value, and parameters and returns a dictionary of new properties. If this method returns null, the original key and value will be used. If any other dictionary is returned, the properties in the dictionary will be copied into the destination properties.

Specified by:
compute in interface ERXProperties.Operator
Parameters:
key - the key ("er.extensions.akey" in "er.extensions.akey.@someOperatorKey.aparameter=somevalue")
value - ("somevalue" in "er.extensions.akey.@someOperatorKey.aparameter=somevalue")
parameters - ("aparameter" in "er.extensions.akey.@someOperatorKey.aparameter=somevalue")
Returns:
a dictionary of properties (or null to use the original key and value)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.