com.metamatrix.common.config.model
Class ComponentCryptoUtil
java.lang.Object
com.metamatrix.common.config.model.ComponentCryptoUtil
public class ComponentCryptoUtil
- extends java.lang.Object
Utilities for encrypting and decrypting properties of configuration ComponentDefns
- Since:
- 4.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentCryptoUtil
public ComponentCryptoUtil()
checkPropertiesDecryptable
public static boolean checkPropertiesDecryptable(ComponentDefn defn,
java.util.Collection componentTypeDefns)
- Check whether the encrypted properties for the specified ComponentDefn can be decrypted.
- Parameters:
defn
- The ComponentDefn to check.componentTypeDefns
- Collection The ComponentTypeDefns containing the
PropertyDefinitions for the specified ComponentDefn.
- Returns:
- true if the properties could be decrypted for that defn.
- Since:
- 4.3
checkPropertiesDecryptable
public static boolean checkPropertiesDecryptable(java.util.Properties props,
java.util.Collection maskedPropertyNames)
- Bails on the first masked property name that's contained in props but the value
can't be decrypted. All masked properties that exist in props must be decryptable.
- Parameters:
props
- componentTypeIdentifier
-
- Returns:
- Since:
- 4.3
getDecryptedProperties
public static java.util.Properties getDecryptedProperties(ComponentDefn defn)
throws ConfigurationException,
CryptoException
- Throws:
ConfigurationException
CryptoException
Copyright © 2009. All Rights Reserved.