Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Sustainsys.​Saml2.​Metadata.​MetadataLoader
Assembly: Sustainsys.Saml2
Inheritance: object → MetadataLoader
Helper for loading SAML2 metadata
Methods
public static
EntityDescriptor
LoadIdp​(string metadataLocation)
Load and parse metadata.
Returns EntityDescriptor containing metadata
metadataLocation
Path to metadata. A Url, absolute
path or an app relative path (e.g. ~/App_Data/metadata.xml)
public static
EntityDescriptor
LoadIdp​(string metadataLocation,
bool unpackEntitiesDescriptor)
Load and parse metadata.
Returns EntityDescriptor containing metadata
metadataLocation
Path to metadata. A Url, absolute
path or an app relative path (e.g. ~/App_Data/metadata.xml)
unpackEntitiesDescriptor
If the metadata contains
an EntitiesDescriptor, try to unpack it and return a single
EntityDescriptor inside if there is one.
public static
EntitiesDescriptor
LoadFederation​(string metadataLocation)
Load and parse metadata for a federation.
Returns Extended entitiesdescriptor
metadataLocation
Url to metadata
public static
EntitiesDescriptor
LoadFederation​(string metadataLocation,
System.​Collections.​Generic.​IEnumerable<​Tokens.​SecurityKeyIdentifierClause> signingKeys,
bool validateCertificate,
string minIncomingSigningAlgorithm)
Load and parse metadata for a federation.
Returns Extended entitiesdescriptor
metadataLocation
Url to metadata
validateCertificate
Validate the certificate when doing
signature validation. Normally a bad idea with SAML2 as certificates
are not required to be valid but are only used as conventient carriers
for keys.
minIncomingSigningAlgorithm
Mininum strength accepted
for signing algorithm.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object