예제 #1
0
        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;
        }
예제 #2
0
 public JwtTokenBuilder SetPrivateKey(RsaPublicPrivateKey rsaPublicPrivateKey)
 {
     PublicPrivateKey = rsaPublicPrivateKey;
     return(this);
 }