/// <summary> /// Represents the Saml Attribute Key. /// </summary> /// <param name="attribute"></param> public AttributeKey(SamlAttribute attribute) { if (attribute == null) { throw LogArgumentNullException(nameof(attribute)); } FriendlyName = string.Empty; Name = attribute.Name; NameFormat = string.Empty; Namespace = attribute.Namespace ?? string.Empty; ValueType = attribute.AttributeValueXsiType ?? string.Empty; OriginalIssuer = attribute.OriginalIssuer ?? string.Empty; _hashCode = ComputeHashCode(); }
/// <summary> /// Creates an instance of <see cref="SamlAttributeStatement"/>. /// </summary> /// <param name="samlSubject">The subject of the attribute statement.</param> /// <param name="attribute">The <see cref="SamlAttribute"/> contained in this statement.</param> public SamlAttributeStatement(SamlSubject samlSubject, SamlAttribute attribute) : this(samlSubject, new SamlAttribute[] { attribute }) { }