public PrincipleSignature(string issuer, string audience, TimeSpan validFor, RsaPublicPrivateKey publicPrivateKey) { issuer.Verify(nameof(issuer)).IsNotEmpty(); publicPrivateKey.Verify(nameof(publicPrivateKey)).IsNotNull(); Issuer = issuer; Audience = audience; ValidFor = validFor; PublicPrivateKey = publicPrivateKey; }
public JwtTokenBuilder SetPrivateKey(RsaPublicPrivateKey rsaPublicPrivateKey) { PublicPrivateKey = rsaPublicPrivateKey; return(this); }