Skip to content

Commit 46c9709

Browse files
NFC-99 Add WithOcspClient method
1 parent ff9ab0f commit 46c9709

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/WebEid.Security/Validator/AuthTokenValidatorBuilder.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,17 @@ public AuthTokenValidatorBuilder WithDesignatedOcspServiceConfiguration(Designat
177177
return this;
178178
}
179179

180+
/// <summary>
181+
/// Configures a custom OCSP client for user certificate revocation checking.
182+
/// </summary>
183+
/// <returns>the builder instance for method chaining</returns>
184+
public AuthTokenValidatorBuilder WithOcspClient(IOcspClient ocspClient)
185+
{
186+
this.ocspClient = ocspClient;
187+
logger?.LogDebug("Custom OCSP client configured");
188+
return this;
189+
}
190+
180191
/// <summary>
181192
/// Validates the configuration and builds the <see cref="AuthTokenValidator"/> object with it.
182193
/// The returned <see cref="AuthTokenValidator"/> object is immutable/thread-safe.

0 commit comments

Comments
 (0)