コード例 #1
0
ファイル: XacmlMatch.cs プロジェクト: torbjokv/altinn-studio
 /// <summary>
 /// Matches a string attribute against the policy.
 /// </summary>
 /// <param name="contextValue">The value from context.</param>
 /// <returns>A bool telling if it is a match</returns>
 public bool IsMatch(string contextValue)
 {
     return(AttributeMatcher.MatchAttributes(this.AttributeValue.Value, contextValue, this.MatchId.OriginalString));
 }
コード例 #2
0
 /// <summary>
 /// Match Attribute value against input attribute value.
 /// </summary>
 /// <param name="matchFunction">The match function.</param>
 /// <param name="policyAttributeValue">The policy Attribute.</param>
 /// <returns>A bool indicating it is a match.</returns>
 public bool MatchAttributeValues(Uri matchFunction, XacmlAttributeValue policyAttributeValue)
 {
     return(AttributeMatcher.MatchAttributes(this.value, policyAttributeValue.Value, matchFunction.OriginalString));
 }