Package system.security.cryptography.xml
Class SignedXml
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.xml.SignedXml
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class SignedXml extends NetObject
The base .NET class managing System.Security.Cryptography.Xml.SignedXml, System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Xml.SignedXml
Powered by JCOBridge: more info at https://www.jcobridge.com
- Version:
- 1.14.3.0
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Securitystatic String
className
Qualified class name: System.Security.Cryptography.Xml.SignedXmlstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SignedXml()
SignedXml(Object instance)
Internal constructor.SignedXml(XmlDocument document)
SignedXml(XmlElement elem)
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Security- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Security.Cryptography.Xml.SignedXml- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignedXml
public SignedXml(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
SignedXml
public SignedXml() throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
InvalidOperationException
ApplicationException
NotSupportedException
TypeLoadException
MissingMethodException
TargetInvocationException
ConfigurationException
ConfigurationErrorsException
FormatException
NotImplementedException
-
SignedXml
public SignedXml(XmlDocument document) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
InvalidOperationException
ApplicationException
NotSupportedException
TypeLoadException
MissingMethodException
TargetInvocationException
ConfigurationException
ConfigurationErrorsException
FormatException
NotImplementedException
-
SignedXml
public SignedXml(XmlElement elem) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
InvalidOperationException
ApplicationException
NotSupportedException
TypeLoadException
MissingMethodException
TargetInvocationException
ConfigurationException
ConfigurationErrorsException
FormatException
NotImplementedException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 SignedXml cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoSignedXml
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SignedXml
instance- Throws:
Throwable
- in case of error during cast operation
-
CheckSignature
public boolean CheckSignature() throws Throwable, ArgumentException, ConfigurationException, ConfigurationErrorsException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, InvalidCastException, NotImplementedException, NotSupportedException, InvalidOperationException, CultureNotFoundException, IndexOutOfRangeException, CryptographicException, ThreadAbortException, MissingMethodException, OutOfMemoryException, SecurityException, RankException, ObjectDisposedException, UnauthorizedAccessException, IOException, ApplicationException, CryptographicUnexpectedOperationException, XmlException, NullReferenceException, FormatException, XPathException
- Throws:
Throwable
ArgumentException
ConfigurationException
ConfigurationErrorsException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
InvalidCastException
NotImplementedException
NotSupportedException
InvalidOperationException
CultureNotFoundException
IndexOutOfRangeException
CryptographicException
ThreadAbortException
MissingMethodException
OutOfMemoryException
SecurityException
RankException
ObjectDisposedException
UnauthorizedAccessException
IOException
ApplicationException
CryptographicUnexpectedOperationException
XmlException
NullReferenceException
FormatException
XPathException
-
CheckSignature
public boolean CheckSignature(AsymmetricAlgorithm key) throws Throwable, ArgumentException, ConfigurationException, ConfigurationErrorsException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, InvalidCastException, NotSupportedException, InvalidOperationException, NotImplementedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, ApplicationException, CryptographicException, FormatException, NullReferenceException, UriFormatException, XmlException, CryptographicUnexpectedOperationException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XPathException
- Throws:
Throwable
ArgumentException
ConfigurationException
ConfigurationErrorsException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
InvalidCastException
NotSupportedException
InvalidOperationException
NotImplementedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
ApplicationException
CryptographicException
FormatException
NullReferenceException
UriFormatException
XmlException
CryptographicUnexpectedOperationException
OutOfMemoryException
MissingMethodException
TargetInvocationException
FileNotFoundException
DirectoryNotFoundException
PathTooLongException
DriveNotFoundException
OperationCanceledException
XPathException
-
CheckSignature
public boolean CheckSignature(KeyedHashAlgorithm macAlg) throws Throwable, ArgumentException, ConfigurationException, ConfigurationErrorsException, ArgumentNullException, MissingManifestResourceException, ArgumentOutOfRangeException, InvalidCastException, NotSupportedException, InvalidOperationException, NotImplementedException, CultureNotFoundException, CryptographicException, FormatException, NullReferenceException, UriFormatException, XmlException, IndexOutOfRangeException, ObjectDisposedException, CryptographicUnexpectedOperationException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, XPathException, MissingMethodException, TargetInvocationException
- Throws:
Throwable
ArgumentException
ConfigurationException
ConfigurationErrorsException
ArgumentNullException
MissingManifestResourceException
ArgumentOutOfRangeException
InvalidCastException
NotSupportedException
InvalidOperationException
NotImplementedException
CultureNotFoundException
CryptographicException
FormatException
NullReferenceException
UriFormatException
XmlException
IndexOutOfRangeException
ObjectDisposedException
CryptographicUnexpectedOperationException
OutOfMemoryException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
XPathException
MissingMethodException
TargetInvocationException
-
CheckSignature
public boolean CheckSignature(X509Certificate2 certificate, boolean verifySignatureOnly) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, CryptographicException, OutOfMemoryException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, IOException, ConfigurationException, ConfigurationErrorsException, OverflowException, FormatException, AccessViolationException, RankException, ThreadAbortException, XmlException, CryptographicUnexpectedOperationException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XPathException, InvalidCastException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
CryptographicException
OutOfMemoryException
IndexOutOfRangeException
SecurityException
ApplicationException
NotSupportedException
IOException
ConfigurationException
ConfigurationErrorsException
OverflowException
FormatException
AccessViolationException
RankException
ThreadAbortException
XmlException
CryptographicUnexpectedOperationException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
PathTooLongException
DriveNotFoundException
OperationCanceledException
XPathException
InvalidCastException
-
CheckSignatureReturningKey
public boolean CheckSignatureReturningKey(JCORefOut<AsymmetricAlgorithm> signingKey) throws Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, FormatException, NotImplementedException, IndexOutOfRangeException, ObjectDisposedException, InvalidOperationException, CryptographicException, ThreadAbortException, MissingMethodException, OutOfMemoryException, SecurityException, AccessViolationException, RankException, UnauthorizedAccessException, IOException, ApplicationException, XmlException, CryptographicUnexpectedOperationException, CultureNotFoundException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XPathException, InvalidCastException
- Throws:
Throwable
ArgumentException
ArgumentNullException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
ArgumentOutOfRangeException
OverflowException
FormatException
NotImplementedException
IndexOutOfRangeException
ObjectDisposedException
InvalidOperationException
CryptographicException
ThreadAbortException
MissingMethodException
OutOfMemoryException
SecurityException
AccessViolationException
RankException
UnauthorizedAccessException
IOException
ApplicationException
XmlException
CryptographicUnexpectedOperationException
CultureNotFoundException
FileNotFoundException
DirectoryNotFoundException
PathTooLongException
DriveNotFoundException
OperationCanceledException
XPathException
InvalidCastException
-
GetIdElement
public XmlElement GetIdElement(XmlDocument document, String idValue) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, SecurityException, UnauthorizedAccessException, IOException, NotSupportedException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, CryptographicException, XPathException
- Throws:
Throwable
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
SecurityException
UnauthorizedAccessException
IOException
NotSupportedException
InvalidOperationException
NotImplementedException
MissingManifestResourceException
CryptographicException
XPathException
-
GetXml
public XmlElement GetXml() throws Throwable, ArgumentOutOfRangeException, NullReferenceException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentException, XmlException, ObjectDisposedException, RankException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException, ApplicationException, NotSupportedException, IndexOutOfRangeException, CryptographicUnexpectedOperationException, OutOfMemoryException
- Throws:
Throwable
ArgumentOutOfRangeException
NullReferenceException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
ArgumentException
XmlException
ObjectDisposedException
RankException
CryptographicException
SecurityException
UnauthorizedAccessException
IOException
ApplicationException
NotSupportedException
IndexOutOfRangeException
CryptographicUnexpectedOperationException
OutOfMemoryException
-
AddObject
public void AddObject(DataObject dataObject) throws Throwable
- Throws:
Throwable
-
AddReference
public void AddReference(Reference reference) throws Throwable, ArgumentNullException, ArgumentOutOfRangeException
-
ComputeSignature
public void ComputeSignature() throws Throwable, ArgumentException, ArgumentNullException, NotSupportedException, ConfigurationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, FormatException, NotImplementedException, IndexOutOfRangeException, ObjectDisposedException, RankException, InvalidOperationException, XmlException, SecurityException, UnauthorizedAccessException, IOException, ApplicationException, CryptographicException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XPathException, OutOfMemoryException, InvalidCastException, CultureNotFoundException, MissingMethodException, CryptographicUnexpectedOperationException
- Throws:
Throwable
ArgumentException
ArgumentNullException
NotSupportedException
ConfigurationException
ConfigurationErrorsException
ArgumentOutOfRangeException
OverflowException
FormatException
NotImplementedException
IndexOutOfRangeException
ObjectDisposedException
RankException
InvalidOperationException
XmlException
SecurityException
UnauthorizedAccessException
IOException
ApplicationException
CryptographicException
FileNotFoundException
DirectoryNotFoundException
PathTooLongException
DriveNotFoundException
OperationCanceledException
XPathException
OutOfMemoryException
InvalidCastException
CultureNotFoundException
MissingMethodException
CryptographicUnexpectedOperationException
-
ComputeSignature
public void ComputeSignature(KeyedHashAlgorithm macAlg) throws Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException, MissingManifestResourceException, CryptographicException, FormatException, OverflowException, RankException, NullReferenceException, XmlException, ConfigurationException, ConfigurationErrorsException, InvalidCastException, SecurityException, UnauthorizedAccessException, IOException, ApplicationException, FileNotFoundException, DirectoryNotFoundException, PathTooLongException, DriveNotFoundException, OperationCanceledException, XPathException, OutOfMemoryException, CryptographicUnexpectedOperationException
- Throws:
Throwable
ArgumentNullException
ArgumentException
TypeLoadException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
NotImplementedException
ArgumentOutOfRangeException
IndexOutOfRangeException
ObjectDisposedException
CultureNotFoundException
MissingManifestResourceException
CryptographicException
FormatException
OverflowException
RankException
NullReferenceException
XmlException
ConfigurationException
ConfigurationErrorsException
InvalidCastException
SecurityException
UnauthorizedAccessException
IOException
ApplicationException
FileNotFoundException
DirectoryNotFoundException
PathTooLongException
DriveNotFoundException
OperationCanceledException
XPathException
OutOfMemoryException
CryptographicUnexpectedOperationException
-
LoadXml
public void LoadXml(XmlElement value) throws Throwable, ArgumentNullException, NullReferenceException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, FormatException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException, XPathException, ApplicationException
- Throws:
Throwable
ArgumentNullException
NullReferenceException
ArgumentException
TypeLoadException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
NotImplementedException
ArgumentOutOfRangeException
IndexOutOfRangeException
CultureNotFoundException
OutOfMemoryException
MissingManifestResourceException
ObjectDisposedException
FormatException
CryptographicException
SecurityException
UnauthorizedAccessException
IOException
XPathException
ApplicationException
-
getSigningKey
public AsymmetricAlgorithm getSigningKey() throws Throwable
- Throws:
Throwable
-
setSigningKey
public void setSigningKey(AsymmetricAlgorithm SigningKey) throws Throwable
- Throws:
Throwable
-
getEncryptedXml
public EncryptedXml getEncryptedXml() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException
-
setEncryptedXml
public void setEncryptedXml(EncryptedXml EncryptedXml) throws Throwable
- Throws:
Throwable
-
getSignedInfo
public SignedInfo getSignedInfo() throws Throwable
- Throws:
Throwable
-
setSigningKeyName
public void setSigningKeyName(String SigningKeyName) throws Throwable
- Throws:
Throwable
-
setResolver
public void setResolver(XmlResolver Resolver) throws Throwable
- Throws:
Throwable
-
-