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 Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Xml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Security.Cryptography.Xmlstatic java.lang.String
className
Qualified class name: System.Security.Cryptography.Xml.EncryptedXmlstatic JCType
classType
The 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 void
AddKeyNameMapping(java.lang.String keyName, NetObject keyObject)
static EncryptedXml
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoEncryptedXml
, a cast assert is made to check if types are compatible.void
ClearKeyNameMappings()
byte[]
DecryptData(EncryptedData encryptedData, SymmetricAlgorithm symmetricAlgorithm)
void
DecryptDocument()
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)
EncryptedData
Encrypt(XmlElement inputElement, java.lang.String keyName)
EncryptedData
Encrypt(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)
SymmetricAlgorithm
GetDecryptionKey(EncryptedData encryptedData, java.lang.String symmetricAlgorithmUri)
Evidence
getDocumentEvidence()
Encoding
getEncoding()
XmlElement
GetIdElement(XmlDocument document, java.lang.String idValue)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeCipherMode
getMode()
PaddingMode
getPadding()
java.lang.String
getRecipient()
XmlResolver
getResolver()
int
getXmlDSigSearchDepth()
void
ReplaceData(XmlElement inputElement, byte[] decryptedData)
void
ReplaceData(XmlElement dupParam0, JCORefOut dupParam1)
static void
ReplaceElement(XmlElement inputElement, EncryptedData encryptedData, boolean content)
void
setDocumentEvidence(Evidence DocumentEvidence)
void
setEncoding(Encoding Encoding)
void
setJCOInstance(JCObject instance)
void
setMode(CipherMode Mode)
void
setPadding(PaddingMode Padding)
void
setRecipient(java.lang.String Recipient)
void
setResolver(XmlResolver Resolver)
void
setXmlDSigSearchDepth(int XmlDSigSearchDepth)
-
-
-
Field Detail
-
assemblyFullName
public 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
-
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.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
EncryptedXml
public EncryptedXml() throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, IndexOutOfRangeException
-
EncryptedXml
public EncryptedXml(XmlDocument document, Evidence evidence) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
EncryptedXml
public EncryptedXml(XmlDocument document) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static EncryptedXml cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoEncryptedXml
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
EncryptedXml
instance- 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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
XmlException
XmlSchemaException
IndexOutOfRangeException
XPathException
-
DecryptEncryptedKey
public 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
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
OutOfMemoryException
XmlException
XmlSchemaException
IndexOutOfRangeException
XPathException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
XPathException
OutOfMemoryException
ExternalException
CryptographicException
MissingMethodException
TargetInvocationException
CryptoSignedXmlRecursionException
TypeLoadException
-
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, InvalidOperationException, ArgumentOutOfRangeException, 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, 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
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
XmlException
XmlSchemaException
IndexOutOfRangeException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
OutOfMemoryException
XmlException
XmlSchemaException
IndexOutOfRangeException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
XmlException
CryptographicException
OutOfMemoryException
-
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
-
-