Package system.security.cryptography.xml
Class EncryptedXml
- java.lang.Object
- 
- org.mases.jcobridge.netreflection.NetObject
- 
- system.security.cryptography.xml.EncryptedXml
 
 
- 
- All Implemented Interfaces:
- IJCOBridgeReflected
 
 public class EncryptedXml extends NetObject The base .NET class managing System.Security.Cryptography.Xml.EncryptedXml, System.Security.Cryptography.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Xml.EncryptedXml Powered by JCOBridge: more info at https://www.jcobridge.com - Author:
- MASES s.r.l https://masesgroup.com
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptography.Xmlstatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.Xml.EncryptedXmlstatic JCTypeclassTypeThe type managed from JCOBridge.
 - 
Constructor SummaryConstructors Constructor Description EncryptedXml()EncryptedXml(java.lang.Object instance)Internal constructor.EncryptedXml(XmlDocument document)EncryptedXml(XmlDocument document, Evidence evidence)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddKeyNameMapping(java.lang.String keyName, NetObject keyObject)static EncryptedXmlcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoEncryptedXml, a cast assert is made to check if types are compatible.voidClearKeyNameMappings()byte[]DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm)voidDecryptDocument()byte[]DecryptEncryptedKey(EncryptedKey encryptedKey)static byte[]DecryptKey(byte[] keyData, RSA rsa, boolean useOAEP)static byte[]DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm)static byte[]DecryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2)static byte[]DecryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1)EncryptedDataEncrypt(XmlElement inputElement, java.lang.String keyName)EncryptedDataEncrypt(XmlElement inputElement, X509Certificate2 certificate)byte[]EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm)byte[]EncryptData(JCORefOut dupParam0, SymmetricAlgorithm dupParam1)byte[]EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, boolean content)static byte[]EncryptKey(byte[] keyData, RSA rsa, boolean useOAEP)static byte[]EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm)static byte[]EncryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2)static byte[]EncryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1)byte[]GetDecryptionIV(EncryptedData encryptedData, java.lang.String symmetricAlgorithmUri)SymmetricAlgorithmGetDecryptionKey(EncryptedData encryptedData, java.lang.String symmetricAlgorithmUri)EvidencegetDocumentEvidence()EncodinggetEncoding()XmlElementGetIdElement(XmlDocument document, java.lang.String idValue)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeCipherModegetMode()PaddingModegetPadding()java.lang.StringgetRecipient()XmlResolvergetResolver()intgetXmlDSigSearchDepth()voidReplaceData(XmlElement inputElement, byte[] decryptedData)voidReplaceData(XmlElement dupParam0, JCORefOut dupParam1)static voidReplaceElement(XmlElement inputElement, EncryptedData encryptedData, boolean content)voidsetDocumentEvidence(Evidence DocumentEvidence)voidsetEncoding(Encoding Encoding)voidsetJCOInstance(JCObject instance)voidsetMode(CipherMode Mode)voidsetPadding(PaddingMode Padding)voidsetRecipient(java.lang.String Recipient)voidsetResolver(XmlResolver Resolver)voidsetXmlDSigSearchDepth(int XmlDSigSearchDepth)
 
- 
- 
- 
Field Detail- 
assemblyFullNamepublic static final java.lang.String assemblyFullName Fully assembly qualified name: System.Security.Cryptography.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
 
 - 
assemblyShortNamepublic static final java.lang.String assemblyShortName Assembly name: System.Security.Cryptography.Xml- See Also:
- Constant Field Values
 
 - 
classNamepublic static final java.lang.String className Qualified class name: System.Security.Cryptography.Xml.EncryptedXml- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
EncryptedXmlpublic EncryptedXml(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
- java.lang.Throwable
 
 - 
EncryptedXmlpublic EncryptedXml() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, IndexOutOfRangeException
 - 
EncryptedXmlpublic EncryptedXml(XmlDocument document, Evidence evidence) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException 
 - 
EncryptedXmlpublic EncryptedXml(XmlDocument document) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException 
 
- 
 - 
Method Detail- 
getJCOAssemblyNamepublic java.lang.String getJCOAssemblyName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
- getJCOAssemblyNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOAssemblyNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Assembly
 
 - 
getJCOClassNamepublic java.lang.String getJCOClassName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
- getJCOClassNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOClassNamein class- NetObject
- Returns:
- A Stringrepresenting the Fullname of reflected Class
 
 - 
getJCOObjectNamepublic java.lang.String getJCOObjectName() Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
- getJCOObjectNamein interface- IJCOBridgeReflected
- Overrides:
- getJCOObjectNamein class- NetObject
- Returns:
- A Stringrepresenting the name used to allocated the object in CLR context
 
 - 
getJCOInstancepublic java.lang.Object getJCOInstance() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
- getJCOInstancein interface- IJCOBridgeReflected
- Overrides:
- getJCOInstancein class- NetObject
- Returns:
- An Objectrepresenting the CLR instance of the instantiated Class
 
 - 
setJCOInstancepublic void setJCOInstance(JCObject instance) - Overrides:
- setJCOInstancein class- NetObject
 
 - 
getJCOTypepublic JCType getJCOType() Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
- getJCOTypein interface- IJCOBridgeReflected
- Overrides:
- getJCOTypein class- NetObject
- Returns:
- A JCTyperepresenting the CLR Type of the instantiated Class
 
 - 
castpublic static EncryptedXml cast(IJCOBridgeReflected from) throws java.lang.Throwable Try to cast theIJCOBridgeReflectedinstance intoEncryptedXml, a cast assert is made to check if types are compatible.- Parameters:
- from-- IJCOBridgeReflectedinstance to be casted
- Returns:
- EncryptedXmlinstance
- Throws:
- java.lang.Throwable- in case of error during cast operation
 
 - 
DecryptDatapublic byte[] DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException, XmlException, XmlSchemaException, IndexOutOfRangeException, XPathException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- CryptographicException
- OutOfMemoryException
- XmlException
- XmlSchemaException
- IndexOutOfRangeException
- XPathException
 
 - 
DecryptEncryptedKeypublic byte[] DecryptEncryptedKey(EncryptedKey encryptedKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, OverflowException, OutOfMemoryException, XPathException, CryptoSignedXmlRecursionException, TypeLoadException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- CryptographicException
- MethodAccessException
- MissingMethodException
- MemberAccessException
- TargetInvocationException
- IndexOutOfRangeException
- FormatException
- OverflowException
- OutOfMemoryException
- XPathException
- CryptoSignedXmlRecursionException
- TypeLoadException
 
 - 
DecryptKeypublic static byte[] DecryptKey(byte[] keyData, RSA rsa, boolean useOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
 - 
DecryptKeypublic static byte[] DecryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException 
 - 
DecryptKeypublic static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
 - 
DecryptKeypublic static byte[] DecryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException 
 - 
EncryptDatapublic byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
 - 
EncryptDatapublic byte[] EncryptData(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException 
 - 
EncryptDatapublic byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, boolean content) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException 
 - 
EncryptKeypublic static byte[] EncryptKey(byte[] keyData, RSA rsa, boolean useOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
 - 
EncryptKeypublic static byte[] EncryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException 
 - 
EncryptKeypublic static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
 - 
EncryptKeypublic static byte[] EncryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException 
 - 
GetDecryptionIVpublic byte[] GetDecryptionIV(EncryptedData encryptedData, java.lang.String symmetricAlgorithmUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException, XmlException, XmlSchemaException, IndexOutOfRangeException, XPathException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- CryptographicException
- OutOfMemoryException
- XmlException
- XmlSchemaException
- IndexOutOfRangeException
- XPathException
 
 - 
GetDecryptionKeypublic SymmetricAlgorithm GetDecryptionKey(EncryptedData encryptedData, java.lang.String symmetricAlgorithmUri) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, XPathException, OutOfMemoryException, ExternalException, CryptographicException, MissingMethodException, TargetInvocationException, CryptoSignedXmlRecursionException, TypeLoadException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- IndexOutOfRangeException
- XPathException
- OutOfMemoryException
- ExternalException
- CryptographicException
- MissingMethodException
- TargetInvocationException
- CryptoSignedXmlRecursionException
- TypeLoadException
 
 - 
Encryptpublic EncryptedData Encrypt(XmlElement inputElement, X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException 
 - 
Encryptpublic EncryptedData Encrypt(XmlElement inputElement, java.lang.String keyName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException 
 - 
GetIdElementpublic XmlElement GetIdElement(XmlDocument document, java.lang.String idValue) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, RankException, ArrayTypeMismatchException, CryptographicException, OutOfMemoryException, XPathException 
 - 
AddKeyNameMappingpublic void AddKeyNameMapping(java.lang.String keyName, NetObject keyObject) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
 - 
ClearKeyNameMappingspublic void ClearKeyNameMappings() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
DecryptDocumentpublic void DecryptDocument() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, XPathException, CultureNotFoundException, OutOfMemoryException, ExternalException, CryptographicException, ArrayTypeMismatchException, ObjectDisposedException, CryptoSignedXmlRecursionException, TypeLoadException, XmlException, XmlSchemaException- Throws:
- java.lang.Throwable
- ArgumentException
- NotSupportedException
- InvalidOperationException
- ArgumentOutOfRangeException
- ArgumentNullException
- PlatformNotSupportedException
- IndexOutOfRangeException
- XPathException
- CultureNotFoundException
- OutOfMemoryException
- ExternalException
- CryptographicException
- ArrayTypeMismatchException
- ObjectDisposedException
- CryptoSignedXmlRecursionException
- TypeLoadException
- XmlException
- XmlSchemaException
 
 - 
ReplaceDatapublic void ReplaceData(XmlElement inputElement, byte[] decryptedData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, XmlException, XmlSchemaException, IndexOutOfRangeException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- OutOfMemoryException
- XmlException
- XmlSchemaException
- IndexOutOfRangeException
 
 - 
ReplaceDatapublic void ReplaceData(XmlElement dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, XmlException, XmlSchemaException, IndexOutOfRangeException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- OutOfMemoryException
- XmlException
- XmlSchemaException
- IndexOutOfRangeException
 
 - 
ReplaceElementpublic static void ReplaceElement(XmlElement inputElement, EncryptedData encryptedData, boolean content) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, XmlException, CryptographicException, OutOfMemoryException - Throws:
- java.lang.Throwable
- ArgumentException
- ArgumentOutOfRangeException
- ArgumentNullException
- InvalidOperationException
- PlatformNotSupportedException
- ArrayTypeMismatchException
- NotSupportedException
- CultureNotFoundException
- ObjectDisposedException
- IndexOutOfRangeException
- XmlException
- CryptographicException
- OutOfMemoryException
 
 - 
getXmlDSigSearchDepthpublic int getXmlDSigSearchDepth() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setXmlDSigSearchDepthpublic void setXmlDSigSearchDepth(int XmlDSigSearchDepth) throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getModepublic CipherMode getMode() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setModepublic void setMode(CipherMode Mode) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getPaddingpublic PaddingMode getPadding() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setPaddingpublic void setPadding(PaddingMode Padding) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getDocumentEvidencepublic Evidence getDocumentEvidence() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setDocumentEvidencepublic void setDocumentEvidence(Evidence DocumentEvidence) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getRecipientpublic java.lang.String getRecipient() throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
setRecipientpublic void setRecipient(java.lang.String Recipient) throws java.lang.Throwable- Throws:
- java.lang.Throwable
 
 - 
getEncodingpublic Encoding getEncoding() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setEncodingpublic void setEncoding(Encoding Encoding) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
getResolverpublic XmlResolver getResolver() throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 - 
setResolverpublic void setResolver(XmlResolver Resolver) throws java.lang.Throwable - Throws:
- java.lang.Throwable
 
 
- 
 
-