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.String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Xml, Version=9.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.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.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.Throwable
Internal 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.Throwable
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
TypeLoadException
NotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
ArrayTypeMismatchException
FormatException
-
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.Throwable
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
TypeLoadException
NotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
ArrayTypeMismatchException
FormatException
-
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.Throwable
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
TypeLoadException
NotSupportedException
IndexOutOfRangeException
ArgumentException
OutOfMemoryException
ExternalException
CultureNotFoundException
ArrayTypeMismatchException
FormatException
-
-
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, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NotSupportedException, CultureNotFoundException, ArrayTypeMismatchException, IndexOutOfRangeException, InvalidOperationException, FormatException, OutOfMemoryException, CryptographicException, RankException, CryptographicUnexpectedOperationException, XmlException, XPathException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NotSupportedException
CultureNotFoundException
ArrayTypeMismatchException
IndexOutOfRangeException
InvalidOperationException
FormatException
OutOfMemoryException
CryptographicException
RankException
CryptographicUnexpectedOperationException
XmlException
XPathException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
CultureNotFoundException
ArrayTypeMismatchException
FormatException
OutOfMemoryException
TypeLoadException
CryptographicException
XmlException
ObjectDisposedException
CryptographicUnexpectedOperationException
XmlSchemaException
ExternalException
XPathException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NotSupportedException
IndexOutOfRangeException
InvalidOperationException
CultureNotFoundException
ArrayTypeMismatchException
FormatException
OutOfMemoryException
CryptographicException
XmlException
ObjectDisposedException
CryptographicUnexpectedOperationException
XmlSchemaException
ExternalException
XPathException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
CryptographicException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidOperationException
NullReferenceException
NotSupportedException
OutOfMemoryException
ExternalException
FormatException
OverflowException
MissingMethodException
TargetInvocationException
ObjectDisposedException
TypeLoadException
XmlException
CryptographicUnexpectedOperationException
XPathException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArrayTypeMismatchException
InvalidOperationException
FormatException
OutOfMemoryException
CryptographicException
IndexOutOfRangeException
RankException
InvalidCastException
MissingMethodException
TargetInvocationException
ObjectDisposedException
TypeLoadException
XmlException
CryptographicUnexpectedOperationException
XPathException
-
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.Throwable
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentException
IndexOutOfRangeException
InvalidOperationException
XmlException
ArgumentNullException
CryptographicException
TypeLoadException
NotSupportedException
ObjectDisposedException
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, 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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
PlatformNotSupportedException
NullReferenceException
NotSupportedException
ArrayTypeMismatchException
InvalidOperationException
FormatException
OutOfMemoryException
IndexOutOfRangeException
RankException
InvalidCastException
XmlException
TypeLoadException
CryptographicException
CultureNotFoundException
XPathException
ObjectDisposedException
CryptographicUnexpectedOperationException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
IndexOutOfRangeException
FormatException
OverflowException
RankException
XmlException
TypeLoadException
OutOfMemoryException
XPathException
CryptographicUnexpectedOperationException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
CryptographicException
IndexOutOfRangeException
XPathException
TypeLoadException
OutOfMemoryException
FormatException
-
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.Throwable
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentException
IndexOutOfRangeException
-
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
-
-