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=9.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 Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography.Xml, Version=9.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 Summary
Constructors Constructor Description EncryptedXml()EncryptedXml(java.lang.Object instance)Internal constructor.EncryptedXml(XmlDocument document)EncryptedXml(XmlDocument document, Evidence evidence)
-
Method Summary
All 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
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Xml, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography.Xml- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.Xml.EncryptedXml- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptedXml
public EncryptedXml(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
EncryptedXml
public EncryptedXml() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeException
-
EncryptedXml
public EncryptedXml(XmlDocument document, Evidence evidence) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
EncryptedXml
public EncryptedXml(XmlDocument document) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public 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
-
DecryptData
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionXmlExceptionXmlSchemaExceptionIndexOutOfRangeExceptionXPathException
-
DecryptEncryptedKey
public byte[] DecryptEncryptedKey(EncryptedKey encryptedKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, OverflowException, OutOfMemoryException, XPathException, CryptoSignedXmlRecursionException, TypeLoadException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionXPathExceptionCryptoSignedXmlRecursionExceptionTypeLoadException
-
DecryptKey
public static byte[] DecryptKey(byte[] keyData, RSA rsa, boolean useOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
DecryptKey
public static byte[] DecryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
DecryptKey
public static byte[] DecryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
DecryptKey
public static byte[] DecryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
EncryptData
public byte[] EncryptData(byte[] plaintext, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
EncryptData
public byte[] EncryptData(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
EncryptData
public byte[] EncryptData(XmlElement inputElement, SymmetricAlgorithm symmetricAlgorithm, boolean content) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
EncryptKey
public static byte[] EncryptKey(byte[] keyData, RSA rsa, boolean useOAEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
EncryptKey
public static byte[] EncryptKey(JCORefOut dupParam0, RSA dupParam1, boolean dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
EncryptKey
public static byte[] EncryptKey(byte[] keyData, SymmetricAlgorithm symmetricAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
EncryptKey
public static byte[] EncryptKey(JCORefOut dupParam0, SymmetricAlgorithm dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
GetDecryptionIV
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionOutOfMemoryExceptionXmlExceptionXmlSchemaExceptionIndexOutOfRangeExceptionXPathException
-
GetDecryptionKey
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionXPathExceptionOutOfMemoryExceptionExternalExceptionCryptographicExceptionMissingMethodExceptionTargetInvocationExceptionCryptoSignedXmlRecursionExceptionTypeLoadException
-
Encrypt
public EncryptedData Encrypt(XmlElement inputElement, X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OutOfMemoryException
-
Encrypt
public EncryptedData Encrypt(XmlElement inputElement, java.lang.String keyName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
GetIdElement
public XmlElement GetIdElement(XmlDocument document, java.lang.String idValue) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, RankException, ArrayTypeMismatchException, CryptographicException, OutOfMemoryException, XPathException
-
AddKeyNameMapping
public void AddKeyNameMapping(java.lang.String keyName, NetObject keyObject) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
ClearKeyNameMappings
public void ClearKeyNameMappings() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DecryptDocument
public void DecryptDocument() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, XPathException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, CryptographicException, ArrayTypeMismatchException, ObjectDisposedException, CryptoSignedXmlRecursionException, TypeLoadException, XmlException, XmlSchemaException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionXPathExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionCryptographicExceptionArrayTypeMismatchExceptionObjectDisposedExceptionCryptoSignedXmlRecursionExceptionTypeLoadExceptionXmlExceptionXmlSchemaException
-
ReplaceData
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionXmlSchemaExceptionIndexOutOfRangeException
-
ReplaceData
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryExceptionXmlExceptionXmlSchemaExceptionIndexOutOfRangeException
-
ReplaceElement
public 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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionXmlExceptionCryptographicExceptionOutOfMemoryException
-
getXmlDSigSearchDepth
public int getXmlDSigSearchDepth() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setXmlDSigSearchDepth
public void setXmlDSigSearchDepth(int XmlDSigSearchDepth) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getMode
public CipherMode getMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setMode
public void setMode(CipherMode Mode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPadding
public PaddingMode getPadding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPadding
public void setPadding(PaddingMode Padding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDocumentEvidence
public Evidence getDocumentEvidence() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDocumentEvidence
public void setDocumentEvidence(Evidence DocumentEvidence) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRecipient
public java.lang.String getRecipient() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setRecipient
public void setRecipient(java.lang.String Recipient) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getEncoding
public Encoding getEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setEncoding
public void setEncoding(Encoding Encoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getResolver
public XmlResolver getResolver() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setResolver
public void setResolver(XmlResolver Resolver) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-