Commit Graph
18 Commits
Author SHA1 Message Date
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Sebastien Pouliot bd6370ad74 2008-11-01 Sebastien Pouliot <[email protected]>
* EncryptedXml.cs: Add proper null check inside methods.
	* SignedXml.cs: GetIdElement returns null if either of its parameter
	is null.
	* Transform.cs: Comment compatibility-NRE in GetDigestedOutput.
	* XmlDecryptionTransform.cs: IsTargetElement returns null if either
	of its parameter is null.
	* XmlDsigC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	* XmlDsigExcC14NTransform.cs: Comment compatibility-NRE in 
	GetDigestedOutput.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117622
2008-11-02 00:25:45 +00:00
Atsushi Eno bacad2cd34 2007-03-22 Atsushi Enomoto <[email protected]>
* XmlCanonicalizer.cs : fill prefixes which should be actually
	  written. It must be actually done before canonicalization (so
	  that node list filtering still takes spec-conformant effect).

	* Transform.cs, XmlDsigC14NTransform.cs, XmlDsigExcC14NTransform.cs :
	  handle PropagatedNamespaces.

	* XmlDsigC14NTransformTest.cs : added test for xmlns attribute 
	  completion for input nodes, as well as test for
	  PropagatedNamespaces (ignored so far).


svn path=/trunk/mcs/; revision=74812
2007-03-22 15:29:11 +00:00
Sebastien Pouliot 74e8f43fa0 2006-05-31 Sebastien Pouliot <[email protected]>
* KeyInfoClause.cs: Under 2.0 the ctor is protected.
	* Transform.cs: Under 2.0 the ctor is protected. Enable the use of 
	XmlSecureResolver when the security manager is active.


svn path=/trunk/mcs/; revision=61337
2006-05-31 14:55:33 +00:00
Sebastien Pouliot 801c89f75e 2005-04-24 Sebastien Pouliot <[email protected]>
* SignedInfo.cs: Added [ComVisible (false)] to new property.
	* SignedXml.cs: Added [ComVisible (false)] to new properties and 
	methods.
	* ReferenceList.cs: Fixed members signatures for beta2.
	* Reference.cs: Added [ComVisible (false)] to new set_TransformChain.
	* EncryptedType.cs: Fix compilation with EncryptionPropertyCollection
	changes.
	* DataObject.cs: Fix compilation warnings.
	* EncryptedKey.cs: Fix compilation with ReferenceList and 
	EncryptionPropertyCollection changes.
	* EncryptionProperties.cs: Class has been renamed to 
	EncryptionPropertyCollection.
	* Transform.cs: Added [ComVisible (false)] to new properties and 
	methods.
	* EncryptedXml.cs: Changed XmlEncRSA1_5Url to XmlEncRSA15Url.
	* KeyInfoRetrievalMethod.cs: Added [ComVisible (false)] to Type 
	property.
	* KeyInfoX509Data.cs: Added [ComVisible (false)] to AddSubjectKeyId
	(string) method and implemented it.
	* EncryptedData.cs: Changed EncryptionProperties to new 
	EncryptionPropertyCollection.
	* XmlDsigC14NTransform.cs: Added [ComVisible (false)] to 
	GetDigestedOutput method and added a basic implementation.
	* X509IssuerSerial.cs: IssuerName and SerialNumber are now properties.


svn path=/trunk/mcs/; revision=43514
2005-04-24 16:16:23 +00:00
Tim Coleman 4eb5a353ec 2004-09-03 Tim Colmean <[email protected]>
* EncryptedXml.cs: Add support for RSA for key formatting
        * Reference.cs: Include XmlDecryptionTransform
        * SignedXml.cs:
                Set the EncryptedKey on the XmlDecryptionTransform when
                loading XML
        * XmlDecryptionTransform.cs:
                Clean up decryption transformation to work without ugly hack.
        * XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
                Implement this class based on XmlDsigC14N
        * XmlSignature.cs: Add namespaces for various classes.
        * KeyInfoEncryptedKey.cs SymmetricKeyWrap.cs:
                Remove TODO attributes from implemented methods.
        * KeyInfoName.cs: Put #if NET_2_0 markers in
        * Transform.cs: Implement GetDigestedOutput

svn path=/trunk/mcs/; revision=33321
2004-09-04 00:21:59 +00:00
Tim Coleman f337c45d30 2004-08-31 Tim Coleman <[email protected]>
* XmlDsigExcC14NTransform.cs XmlDsigExcC14NWithCommentsTransform.cs:
                Add new stub classes
        * SignedXml.cs Transform.cs:
                New methods for 2.0

svn path=/trunk/mcs/; revision=33093
2004-08-31 12:29:00 +00:00
Duncan Mak 25e1e7ccfd Add MIT license to System.Security.DLL
svn path=/trunk/mcs/; revision=30060
2004-06-21 18:32:17 +00:00
Atsushi Eno 461b2e57a5 2004-05-05 Atsushi Enomoto <[email protected]>
* SignedXml.cs,
	  Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
	* XmlDsigBase64Transform.cs : Should not output the content of the
	  selected element nodes. Put text content only those text nodes are
	  in the node list.
	* XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
	* XmlDsigXsltTransform.cs : Use XmlResolver to load document and
	  to transform. Throw null reference exception explicitly when
	  the input was not loaded.

svn path=/trunk/mcs/; revision=26731
2004-05-05 03:45:49 +00:00
Atsushi Eno a026462b96 2004-03-04 Atsushi Enomoto <[email protected]>
* KeyInfo.cs :
	  Fixed LoadXml() to skip text nodes as MS.NET does.
	  Uncommented out RSAKeyValue.
	* Signature.cs : Fixed LoadXml(). Don't use GetElementsByTagName()
	  that incorrectly acquires descendants. Throw CryptographicException
	  if required elements were not found.
	* Transform.cs : added internal GetResolver().
	* XmlDsigXPathTransform.cs,
	  XmlDsigXsltTransform.cs : use XmlResolver.

svn path=/trunk/mcs/; revision=23711
2004-03-04 22:53:21 +00:00
Sebastien Pouliot 45c940d7fc 2004-02-11 Sebastien Pouliot <[email protected]>
* Reference.cs: Added LoadInnerXml to transforms. Removed unused
	variable.
	* Transform.cs: Import GetInnerXml in GetXml.
	* XmlDsigBase64Transform.cs: Now use a StreamWriter to avoid multiple
	allocations.
	* XmlDsigC14NTransform.cs: Added Stream support to LoadInput
	* XmlDsigXPathTransform.cs: Fixed GetInnerXml to include xpath
	expression and LoadInput. It nows match MS implementation but doesn't
	work like I think it should (but neither is MS implementation).

svn path=/trunk/mcs/; revision=22985
2004-02-11 18:09:07 +00:00
Sebastien Pouliot 9ff63f2031 2004-01-11 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Fixed class signature (for 1.1+) by adding public to
	Resolver property.
	* Transform.cs: Fixed class signature (for 1.1+) by adding public to
	Resolver property.

svn path=/trunk/mcs/; revision=21962
2004-01-12 01:26:55 +00:00
Sebastien Pouliot 4dce7be6f7 2003-06-11 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Changed USE_VERSION_1_0 for NET_1_0.
	* Transform.cs: Changed USE_VERSION_1_0 for NET_1_0.

svn path=/trunk/mcs/; revision=15357
2003-06-13 03:32:30 +00:00
Sebastien Pouliot 801391605d 2003-05-10 Sebastien Pouliot <[email protected]>
* SignedXml.cs: Added property XmlResolver Resolver as per framework 1.1
	documentation (no public declaration).
	* Transform.cs: Added property XmlResolver Resolver as per framework 1.1
	documentation (no public declaration).

svn path=/trunk/mcs/; revision=14454
2003-05-10 14:47:44 +00:00
Sebastien Pouliot 2d91f6724f 2003-03-02 Sebastien Pouliot <[email protected]>
* DSAKeyValue.cs: New XML generation is commented. Old string technique
	did a better job to match MS implementation.
	* DataObject.cs: Replaced XML generation from StringBuilder to XmlElement.
	* KeyInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
	* KeyInfoName.cs: Replaced XML generation from StringBuilder to XmlElement.
	* KeyInfoNode.cs: Replaced XML generation from StringBuilder to XmlElement.
	* KeyInfoRetrievalMethod.cs: Replaced XML generation from StringBuilder to XmlElement.
	* KeyInfoX509Data.cs: Replaced XML generation from StringBuilder to XmlElement.
	* RSAKeyValue.cs: New XML generation is commented. Old string technique
	did a better job to match MS implementation.
	* Reference.cs: Replaced XML generation from StringBuilder to XmlElement.
	* Signature.cs: Replaced XML generation from StringBuilder to XmlElement.
	* SignedInfo.cs: Replaced XML generation from StringBuilder to XmlElement.
	* SignedXml.cs: Replaced XML generation from StringBuilder to XmlElement.
	* Transform.cs: Replaced XML generation from StringBuilder to XmlElement.
	* XmlDsigEnvelopedSignatureTransform.cs: Added missing Algorithm URL.
	* XmlDsigXPathTransform.cs: Added missing Algorithm URL.
	* XmlSignature.cs: New. Private contants (construct similar to WSE).

svn path=/trunk/mcs/; revision=12100
2003-03-02 16:09:19 +00:00
Sebastien Pouliot 355327100c 2003-02-19 Sebastien Pouliot <[email protected]>
* All: Corrected class indentation, minor fixes, added many MonoTODO (so class status
	will reflect reality).

svn path=/trunk/mcs/; revision=11750
2003-02-20 00:49:58 +00:00
Sebastien Pouliot 6b3d5687da 2003-01-17 Sebastien Pouliot <[email protected]>
* KeyInfo.cs: Changed some protected declaration to private.
	* KeyInfoName.cs: Changed some protected declaration to private.
	* KeyInfoNode.cs: Changed some protected declaration to private.
	* KeyInfoRetrievalMethod.cs: Changed some protected declaration to private.
	* KeyInfoX509Data.cs: Changed some protected declaration to private.
	* Transform.cs: Changed some protected declaration to private.
	* XmlDsigBase64Transform.cs: Changed some protected declaration to private.
	* XmlDsigC14NTransform.cs: Changed some protected declaration to private.
	* XmlDsigC14NWithCommentsTransform.cs: Changed some protected declaration to private.
	* XmlDsigEnvelopedSignatureTransform.cs: Changed some protected declaration to private.
	* XmlDsigXPathTransform.cs: Changed some protected declaration to private.
	* XmlDsigXsltTransform.cs: Changed some protected declaration to private.

svn path=/trunk/mcs/; revision=10636
2003-01-18 00:56:18 +00:00
Sebastien Pouliot e69a395eda 2002-11-20 Sebastien Pouliot <[email protected]>
* DataObject.cs: New. Complete implementation.
	* DSAKeyValue.cs: New. Complete implementation.
	* KeyInfo.cs: New. Complete implementation.
	* KeyInfoClause.cs: New. Abstract class (complete).
	* KeyInfoName.cs: New. Complete implementation.
	* KeyInfoNode.cs: New. Complete implementation.
	* KeyInfoRetrievalMethod.cs: New. Complete implementation.
	* KeyInfoX509Data.cs: New. Complete implementation.
	* Reference.cs: New. Incomplete implementation.
	* RSAKeyValue.cs: New. Complete implementation.
	* Signature.cs: New. Almost complete implementation - returned
	XML isn't exactly like the MS implementation.
	* SignedInfo.cs: New. Complete except SignatureLength.
	* SignedXml.cs: New. Minimal implementation (only enveloped signatures).
	Still many TODO!
	* Transform.cs: New. Abstract class (complete).
	* TransformChain.cs: New. Complete implementation.
	* XmlDsigBase64Transform.cs: New. Stub + basic logic.
	* XmlDsigC14NTransform.cs: New. Stub + basic logic.
	* XmlDsigC14NWithCommentsTransform.cs: New. Stub + basic logic.
	* XmlDsigEnvelopedSignatureTransform.cs: New. Stub + basic logic.
	* XmlDsigXPathTransform.cs: New. Stub + basic logic.
	* XmlDsigXsltTransform.cs: New. Stub + basic logic.

svn path=/trunk/mcs/; revision=9124
2002-11-21 02:24:23 +00:00