Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Saml20ArtifactResponse"/> class.
 /// </summary>
 public Saml20ArtifactResponse()
 {
     _artifactResponse = new ArtifactResponse();
     _artifactResponse.Version = Saml20Constants.Version;
     _artifactResponse.ID = "id" + Guid.NewGuid().ToString("N");
     _artifactResponse.Issuer = new NameID();
     _artifactResponse.IssueInstant = DateTime.Now;
     _artifactResponse.Status = new Status();
     _artifactResponse.Status.StatusCode = new StatusCode();
 }
 /// <summary>
 /// Loads the current message as an artifact response.
 /// </summary>
 private void LoadArtifactResponse()
 {
     if(_artifactResponse == null)
     {
         _artifactResponse = Serialization.Deserialize<ArtifactResponse>(new XmlNodeReader(SamlMessage));
     }
 }