/// <summary> /// Verify macaroon with respect to the verifier's set of valid predicates and a set of discharge macaroons. /// </summary> public VerificationResult Verify(Macaroon m, Packet key, List <Macaroon> ms = null) { Condition.Requires(m, "m").IsNotNull(); Condition.Requires(key, "key").IsNotNull(); return(m.Verify(this, key, ms)); }
public VerificationResult Verify(Macaroon m, Packet key, List <Macaroon> ms = null) { if (m == null) { throw new ArgumentNullException(nameof(m)); } if (key == null) { throw new ArgumentNullException(nameof(key)); } return(m.Verify(this, key, ms)); }