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
- 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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Securitystatic java.lang.String
className
Qualified class name: System.Security.Cryptography.Xml.SignedXmlstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SignedXml()
SignedXml(java.lang.Object instance)
Internal constructor.SignedXml(XmlDocument document)
SignedXml(XmlElement elem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddObject(DataObject dataObject)
void
AddReference(Reference reference)
static SignedXml
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSignedXml
, a cast assert is made to check if types are compatible.boolean
CheckSignature()
boolean
CheckSignature(AsymmetricAlgorithm key)
boolean
CheckSignature(KeyedHashAlgorithm macAlg)
boolean
CheckSignature(X509Certificate2 certificate, boolean verifySignatureOnly)
boolean
CheckSignatureReturningKey(JCORefOut<AsymmetricAlgorithm> signingKey)
void
ComputeSignature()
void
ComputeSignature(KeyedHashAlgorithm macAlg)
EncryptedXml
getEncryptedXml()
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 TypeKeyInfo
getKeyInfo()
Signature
getSignature()
java.lang.String
getSignatureLength()
java.lang.String
getSignatureMethod()
byte[]
getSignatureValue()
SignedInfo
getSignedInfo()
AsymmetricAlgorithm
getSigningKey()
java.lang.String
getSigningKeyName()
XmlElement
GetXml()
void
LoadXml(XmlElement value)
void
setEncryptedXml(EncryptedXml EncryptedXml)
void
setJCOInstance(JCObject instance)
void
setKeyInfo(KeyInfo KeyInfo)
void
setResolver(XmlResolver Resolver)
void
setSigningKey(AsymmetricAlgorithm SigningKey)
void
setSigningKeyName(java.lang.String SigningKeyName)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.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 java.lang.String assemblyShortName
Assembly name: System.Security- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.Xml.SignedXml- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignedXml
public SignedXml(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SignedXml
public SignedXml() throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
java.lang.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 java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
java.lang.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 java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException, MissingMethodException, TargetInvocationException, ConfigurationException, ConfigurationErrorsException, FormatException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
InvalidOperationException
ApplicationException
NotSupportedException
TypeLoadException
MissingMethodException
TargetInvocationException
ConfigurationException
ConfigurationErrorsException
FormatException
NotImplementedException
-
-
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 SignedXml cast(IJCOBridgeReflected from) throws java.lang.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:
java.lang.Throwable
- in case of error during cast operation
-
CheckSignature
public boolean CheckSignature() throws java.lang.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:
java.lang.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 java.lang.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:
java.lang.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 java.lang.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:
java.lang.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 java.lang.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:
java.lang.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 java.lang.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:
java.lang.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, java.lang.String idValue) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, SecurityException, UnauthorizedAccessException, IOException, NotSupportedException, InvalidOperationException, NotImplementedException, MissingManifestResourceException, CryptographicException, XPathException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
ArgumentException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
SecurityException
UnauthorizedAccessException
IOException
NotSupportedException
InvalidOperationException
NotImplementedException
MissingManifestResourceException
CryptographicException
XPathException
-
GetXml
public XmlElement GetXml() throws java.lang.Throwable, ArgumentOutOfRangeException, NullReferenceException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentException, XmlException, ObjectDisposedException, RankException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException, ApplicationException, NotSupportedException, IndexOutOfRangeException, CryptographicUnexpectedOperationException, OutOfMemoryException
- Throws:
java.lang.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 java.lang.Throwable
- Throws:
java.lang.Throwable
-
AddReference
public void AddReference(Reference reference) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
-
ComputeSignature
public void ComputeSignature() throws java.lang.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:
java.lang.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 java.lang.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:
java.lang.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 java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, NotImplementedException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, OutOfMemoryException, MissingManifestResourceException, ObjectDisposedException, FormatException, CryptographicException, SecurityException, UnauthorizedAccessException, IOException, XPathException, ApplicationException
- Throws:
java.lang.Throwable
ArgumentNullException
NullReferenceException
ArgumentException
TypeLoadException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
NotImplementedException
ArgumentOutOfRangeException
IndexOutOfRangeException
CultureNotFoundException
OutOfMemoryException
MissingManifestResourceException
ObjectDisposedException
FormatException
CryptographicException
SecurityException
UnauthorizedAccessException
IOException
XPathException
ApplicationException
-
getSignatureValue
public byte[] getSignatureValue() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSigningKey
public AsymmetricAlgorithm getSigningKey() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSigningKey
public void setSigningKey(AsymmetricAlgorithm SigningKey) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEncryptedXml
public EncryptedXml getEncryptedXml() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException
-
setEncryptedXml
public void setEncryptedXml(EncryptedXml EncryptedXml) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getKeyInfo
public KeyInfo getKeyInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setKeyInfo
public void setKeyInfo(KeyInfo KeyInfo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSignature
public Signature getSignature() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSignedInfo
public SignedInfo getSignedInfo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSignatureLength
public java.lang.String getSignatureLength() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSignatureMethod
public java.lang.String getSignatureMethod() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSigningKeyName
public java.lang.String getSigningKeyName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSigningKeyName
public void setSigningKeyName(java.lang.String SigningKeyName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setResolver
public void setResolver(XmlResolver Resolver) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-