@@ -34,11 +34,11 @@ public sealed class Credential
3434 private readonly byte [ ] id ;
3535 private readonly byte [ ] ? userHandle ;
3636
37- private Credential ( byte [ ] id , bool isResidentCredential , string rpId , string privateKey , byte [ ] ? userHandle , int signCount )
37+ private Credential ( byte [ ] id , bool isResidentCredential , string ? rpId , string privateKey , byte [ ] ? userHandle , int signCount )
3838 {
3939 this . id = id ?? throw new ArgumentNullException ( nameof ( id ) ) ;
4040 this . IsResidentCredential = isResidentCredential ;
41- this . RpId = rpId ?? throw new ArgumentNullException ( nameof ( rpId ) ) ;
41+ this . RpId = rpId ;
4242 this . PrivateKey = privateKey ?? throw new ArgumentNullException ( nameof ( privateKey ) ) ;
4343 this . userHandle = userHandle ;
4444 this . SignCount = signCount ;
@@ -52,8 +52,8 @@ private Credential(byte[] id, bool isResidentCredential, string rpId, string pri
5252 /// <param name="privateKey">The private Key for the credentials.</param>
5353 /// <param name="signCount">The signature counter for the credentials.</param>
5454 /// <returns>The created instance of the Credential class.</returns>
55- /// <exception cref="ArgumentNullException">If <paramref name="id"/>, <paramref name="rpId"/>, or <paramref name="privateKey"/> are <see langword="null"/>.</exception>
56- public static Credential CreateNonResidentCredential ( byte [ ] id , string rpId , string privateKey , int signCount )
55+ /// <exception cref="ArgumentNullException">If <paramref name="id"/> or <paramref name="privateKey"/> are <see langword="null"/>.</exception>
56+ public static Credential CreateNonResidentCredential ( byte [ ] id , string ? rpId , string privateKey , int signCount )
5757 {
5858 return new Credential ( id , false , rpId , privateKey , null , signCount ) ;
5959 }
@@ -67,8 +67,8 @@ public static Credential CreateNonResidentCredential(byte[] id, string rpId, str
6767 /// <param name="userHandle">The user handle associated to the credential.</param>
6868 /// <param name="signCount">The signature counter for the credentials.</param>
6969 /// <returns>The created instance of the Credential class.</returns>
70- /// <exception cref="ArgumentNullException">If <paramref name="id"/>, <paramref name="rpId"/>, or <paramref name="privateKey"/> are <see langword="null"/>.</exception>
71- public static Credential CreateResidentCredential ( byte [ ] id , string rpId , string privateKey , byte [ ] userHandle , int signCount )
70+ /// <exception cref="ArgumentNullException">If <paramref name="id"/> or <paramref name="privateKey"/> are <see langword="null"/>.</exception>
71+ public static Credential CreateResidentCredential ( byte [ ] id , string ? rpId , string privateKey , byte [ ] userHandle , int signCount )
7272 {
7373 return new Credential ( id , true , rpId , privateKey , userHandle , signCount ) ;
7474 }
0 commit comments