Package system.identitymodel.metadata
Class MetadataSerializer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.identitymodel.metadata.MetadataSerializer
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MetadataSerializer extends NetObject
The base .NET class managing System.IdentityModel.Metadata.MetadataSerializer, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IdentityModel.Metadata.MetadataSerializer
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.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.IdentityModelstatic java.lang.String
className
Qualified class name: System.IdentityModel.Metadata.MetadataSerializerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MetadataSerializer()
MetadataSerializer(java.lang.Object instance)
Internal constructor.MetadataSerializer(SecurityTokenSerializer tokenSerializer)
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IdentityModel- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IdentityModel.Metadata.MetadataSerializer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetadataSerializer
public MetadataSerializer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
MetadataSerializer
public MetadataSerializer() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, MulticastNotSupportedException
-
MetadataSerializer
public MetadataSerializer(SecurityTokenSerializer tokenSerializer) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException
-
-
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 MetadataSerializer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMetadataSerializer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MetadataSerializer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
ReadWebServiceDescriptorElement
public boolean ReadWebServiceDescriptorElement(XmlReader reader, WebServiceDescriptor roleDescriptor) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, CultureNotFoundException, NotSupportedException, XmlSchemaException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
XmlException
CultureNotFoundException
NotSupportedException
XmlSchemaException
-
ReadMetadata
public MetadataBase ReadMetadata(Stream stream) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, XmlException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
NotSupportedException
XmlException
-
ReadMetadata
public MetadataBase ReadMetadata(XmlReader reader) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, MulticastNotSupportedException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ConfigurationErrorsException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
MulticastNotSupportedException
ArgumentNullException
FormatException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ConfigurationErrorsException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
XmlException
-
ReadMetadata
public MetadataBase ReadMetadata(XmlReader reader, SecurityTokenResolver tokenResolver) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, XmlException, NotSupportedException, CultureNotFoundException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
XmlException
NotSupportedException
CultureNotFoundException
KeyNotFoundException
-
WriteMetadata
public void WriteMetadata(Stream stream, MetadataBase metadata) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
NotSupportedException
CryptographicException
-
WriteMetadata
public void WriteMetadata(XmlWriter writer, MetadataBase metadata) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, NotSupportedException, PlatformNotSupportedException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
OverflowException
OutOfMemoryException
NotSupportedException
PlatformNotSupportedException
CryptographicException
-
getSecurityTokenSerializer
public SecurityTokenSerializer getSecurityTokenSerializer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCertificateValidator
public X509CertificateValidator getCertificateValidator() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCertificateValidator
public void setCertificateValidator(X509CertificateValidator CertificateValidator) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTrustedStoreLocation
public StoreLocation getTrustedStoreLocation() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTrustedStoreLocation
public void setTrustedStoreLocation(StoreLocation TrustedStoreLocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRevocationMode
public X509RevocationMode getRevocationMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setRevocationMode
public void setRevocationMode(X509RevocationMode RevocationMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCertificateValidationMode
public X509CertificateValidationMode getCertificateValidationMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCertificateValidationMode
public void setCertificateValidationMode(X509CertificateValidationMode CertificateValidationMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-