// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.Xml;
namespace System.Security.Cryptography.Xml {
private IRelDecryptor _decryptor;
private Type[] inputTypes;
private Type[] outputTypes;
- private object lockObject = new object ();
public XmlLicenseTransform ()
{
+ Algorithm = XmlSignature.AlgorithmNamespaces.XmlLicenseTransform;
}
public IRelDecryptor Decryptor {
public override Type[] InputTypes {
get {
- if (inputTypes == null) {
- lock (lockObject) {
- inputTypes = new Type [1] { typeof (XmlDocument) };
- }
- }
+ if (inputTypes == null)
+ inputTypes = new Type [1] { typeof (XmlDocument) };
+
return inputTypes;
}
}
public override Type[] OutputTypes {
get {
- if (outputTypes == null) {
- lock (lockObject) {
- outputTypes = new Type [1] {typeof (XmlDocument)};
- }
- }
+ if (outputTypes == null)
+ outputTypes = new Type [1] {typeof (XmlDocument)};
+
return outputTypes;
}
}
[MonoTODO]
public override void LoadInput (object obj)
{
- if (obj != typeof (XmlDocument))
- throw new ArgumentException ("obj");
if (_decryptor == null)
throw new CryptographicException (Locale.GetText ("missing decryptor"));
// TODO: check for <issuer> element
}
}
}
-
-#endif