public bool Verify(JoseHeader header, string data, byte[] signature) { if (header == null) { throw new ArgumentNullException(nameof(header)); } if (this.Disposed) { throw new ObjectDisposedException(this.GetType().Name); } // Get it from header :) if (this.publicKey == null) { this.SetKey(header.GetPublicKey()); } return(this.VerifyInternal(header, data, signature)); }
public bool Verify(JoseHeader header, string data, byte[] signature) { if (header == null) throw new ArgumentNullException(nameof(header)); if (this.Disposed) throw new ObjectDisposedException(this.GetType().Name); // Get it from header :) if (this.publicKey == null) this.SetKey(header.GetPublicKey()); return this.VerifyInternal(header, data, signature); }