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.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.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.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.SignedXmlstatic JCTypeclassTypeThe 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 voidAddObject(DataObject dataObject)voidAddReference(Reference reference)static SignedXmlcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSignedXml, a cast assert is made to check if types are compatible.booleanCheckSignature()booleanCheckSignature(AsymmetricAlgorithm key)booleanCheckSignature(KeyedHashAlgorithm macAlg)booleanCheckSignature(X509Certificate2 certificate, boolean verifySignatureOnly)booleanCheckSignatureReturningKey(JCORefOut<AsymmetricAlgorithm> signingKey)voidComputeSignature()voidComputeSignature(KeyedHashAlgorithm macAlg)EncryptedXmlgetEncryptedXml()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 TypeKeyInfogetKeyInfo()SignaturegetSignature()java.lang.StringgetSignatureLength()java.lang.StringgetSignatureMethod()byte[]getSignatureValue()SignedInfogetSignedInfo()AsymmetricAlgorithmgetSigningKey()java.lang.StringgetSigningKeyName()XmlElementGetXml()voidLoadXml(XmlElement value)voidsetEncryptedXml(EncryptedXml EncryptedXml)voidsetJCOInstance(JCObject instance)voidsetKeyInfo(KeyInfo KeyInfo)voidsetResolver(XmlResolver Resolver)voidsetSigningKey(AsymmetricAlgorithm SigningKey)voidsetSigningKeyName(java.lang.String SigningKeyName)
-
-
-
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.SignedXml- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignedXml
public SignedXml(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
SignedXml
public SignedXml() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, TypeLoadException, NotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, ArrayTypeMismatchException, FormatException- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionTypeLoadExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionFormatException
-
SignedXml
public SignedXml(XmlDocument document) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, TypeLoadException, NotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, ArrayTypeMismatchException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionTypeLoadExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionFormatException
-
SignedXml
public SignedXml(XmlElement elem) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, TypeLoadException, NotSupportedException, IndexOutOfRangeException, ArgumentException, OutOfMemoryException, ExternalException, CultureNotFoundException, ArrayTypeMismatchException, FormatException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionTypeLoadExceptionNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionOutOfMemoryExceptionExternalExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionFormatException
-
-
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 SignedXml cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSignedXml, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SignedXmlinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CheckSignature
public boolean CheckSignature() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, CultureNotFoundException, ArrayTypeMismatchException, IndexOutOfRangeException, InvalidOperationException, FormatException, OutOfMemoryException, CryptographicException, RankException, CryptographicUnexpectedOperationException, XmlException, XPathException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNotSupportedExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionInvalidOperationExceptionFormatExceptionOutOfMemoryExceptionCryptographicExceptionRankExceptionCryptographicUnexpectedOperationExceptionXmlExceptionXPathException
-
CheckSignature
public boolean CheckSignature(AsymmetricAlgorithm key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, CultureNotFoundException, ArrayTypeMismatchException, FormatException, OutOfMemoryException, TypeLoadException, CryptographicException, XmlException, ObjectDisposedException, CryptographicUnexpectedOperationException, XmlSchemaException, ExternalException, XPathException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionFormatExceptionOutOfMemoryExceptionTypeLoadExceptionCryptographicExceptionXmlExceptionObjectDisposedExceptionCryptographicUnexpectedOperationExceptionXmlSchemaExceptionExternalExceptionXPathException
-
CheckSignature
public boolean CheckSignature(KeyedHashAlgorithm macAlg) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, IndexOutOfRangeException, InvalidOperationException, CultureNotFoundException, ArrayTypeMismatchException, FormatException, OutOfMemoryException, CryptographicException, XmlException, ObjectDisposedException, CryptographicUnexpectedOperationException, XmlSchemaException, ExternalException, XPathException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionFormatExceptionOutOfMemoryExceptionCryptographicExceptionXmlExceptionObjectDisposedExceptionCryptographicUnexpectedOperationExceptionXmlSchemaExceptionExternalExceptionXPathException
-
CheckSignature
public boolean CheckSignature(X509Certificate2 certificate, boolean verifySignatureOnly) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, CryptographicException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, NullReferenceException, NotSupportedException, OutOfMemoryException, ExternalException, FormatException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException, TypeLoadException, XmlException, CryptographicUnexpectedOperationException, XPathException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionCryptographicExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidOperationExceptionNullReferenceExceptionNotSupportedExceptionOutOfMemoryExceptionExternalExceptionFormatExceptionOverflowExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionTypeLoadExceptionXmlExceptionCryptographicUnexpectedOperationExceptionXPathException
-
CheckSignatureReturningKey
public boolean CheckSignatureReturningKey(JCORefOut<AsymmetricAlgorithm> signingKey) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArrayTypeMismatchException, InvalidOperationException, FormatException, OutOfMemoryException, CryptographicException, IndexOutOfRangeException, RankException, InvalidCastException, MissingMethodException, TargetInvocationException, ObjectDisposedException, TypeLoadException, XmlException, CryptographicUnexpectedOperationException, XPathException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionOutOfMemoryExceptionCryptographicExceptionIndexOutOfRangeExceptionRankExceptionInvalidCastExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionTypeLoadExceptionXmlExceptionCryptographicUnexpectedOperationExceptionXPathException
-
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
-
GetXml
public XmlElement GetXml() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, InvalidOperationException, XmlException, ArgumentNullException, CryptographicException, TypeLoadException, NotSupportedException, ObjectDisposedException, CryptographicUnexpectedOperationException, OutOfMemoryException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionInvalidOperationExceptionXmlExceptionArgumentNullExceptionCryptographicExceptionTypeLoadExceptionNotSupportedExceptionObjectDisposedExceptionCryptographicUnexpectedOperationExceptionOutOfMemoryException
-
AddObject
public void AddObject(DataObject dataObject) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
AddReference
public void AddReference(Reference reference) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
ComputeSignature
public void ComputeSignature() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArrayTypeMismatchException, InvalidOperationException, FormatException, OutOfMemoryException, IndexOutOfRangeException, RankException, InvalidCastException, XmlException, TypeLoadException, CryptographicException, CultureNotFoundException, XPathException, ObjectDisposedException, CryptographicUnexpectedOperationException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionNullReferenceExceptionNotSupportedExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionRankExceptionInvalidCastExceptionXmlExceptionTypeLoadExceptionCryptographicExceptionCultureNotFoundExceptionXPathExceptionObjectDisposedExceptionCryptographicUnexpectedOperationException
-
ComputeSignature
public void ComputeSignature(KeyedHashAlgorithm macAlg) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, IndexOutOfRangeException, FormatException, OverflowException, RankException, XmlException, TypeLoadException, OutOfMemoryException, XPathException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionIndexOutOfRangeExceptionFormatExceptionOverflowExceptionRankExceptionXmlExceptionTypeLoadExceptionOutOfMemoryExceptionXPathExceptionCryptographicUnexpectedOperationException
-
LoadXml
public void LoadXml(XmlElement value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, IndexOutOfRangeException, XPathException, TypeLoadException, OutOfMemoryException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionIndexOutOfRangeExceptionXPathExceptionTypeLoadExceptionOutOfMemoryExceptionFormatException
-
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, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeException
-
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
-
-