/// <summary> /// Gets a default instance of this class with proper values set. /// </summary> /// <returns></returns> public static Saml20ArtifactResolve GetDefault() { SAML20FederationConfig config = SAML20FederationConfig.GetConfig(); if (config.ServiceProvider == null || string.IsNullOrEmpty(config.ServiceProvider.ID)) { throw new Saml20FormatException(Resources.ServiceProviderNotSet); } Saml20ArtifactResolve result = new Saml20ArtifactResolve(); result.Issuer = config.ServiceProvider.ID; return(result); }
/// <summary> /// Gets a default instance of this class with proper values set. /// </summary> /// <returns></returns> public static Saml20ArtifactResolve GetDefault() { SAML20FederationConfig config = SAML20FederationConfig.GetConfig(); if (config.ServiceProvider == null || string.IsNullOrEmpty(config.ServiceProvider.ID)) throw new Saml20FormatException(Resources.ServiceProviderNotSet); Saml20ArtifactResolve result = new Saml20ArtifactResolve(); result.Issuer = config.ServiceProvider.ID; return result; }