Interface IRedactor
- Namespace
 - ZeroRedact
 
- Assembly
 - ZeroRedact.dll
 
Implements redaction capabilities.
public interface IRedactor
  Methods
RedactCreditCard(ReadOnlySpan<char>)
Redacts the provided credit card number.
ReadOnlySpan<char> RedactCreditCard(ReadOnlySpan<char> creditCardNumber)
  Parameters
creditCardNumberReadOnlySpan<char>The credit card number to redact.
Returns
RedactCreditCard(ReadOnlySpan<char>, CreditCardRedactorOptions)
Redacts the provided credit card number.
ReadOnlySpan<char> RedactCreditCard(ReadOnlySpan<char> creditCardNumber, CreditCardRedactorOptions redactorOptions)
  Parameters
creditCardNumberReadOnlySpan<char>The credit card number to redact.
redactorOptionsCreditCardRedactorOptionsThe options to control redaction behavior.
Returns
RedactCreditCard(string)
Redacts the provided credit card number.
string RedactCreditCard(string creditCardNumber)
  Parameters
creditCardNumberstringThe credit card number to redact.
Returns
RedactCreditCard(string, CreditCardRedactorOptions)
Redacts the provided credit card number.
string RedactCreditCard(string creditCardNumber, CreditCardRedactorOptions redactorOptions)
  Parameters
creditCardNumberstringThe credit card number to redact.
redactorOptionsCreditCardRedactorOptionsThe options to control redaction behavior.
Returns
RedactDate(DateOnly)
Redacts the provided date.
string RedactDate(DateOnly date)
  Parameters
dateDateOnlyThe date to redact.
Returns
- string
 Returns redacted short date formatted for the current CultureInfo.
RedactDate(DateOnly, DateRedactorOptions)
Redacts the provided date.
string RedactDate(DateOnly date, DateRedactorOptions redactorOptions)
  Parameters
dateDateOnlyThe date to redact.
redactorOptionsDateRedactorOptionsThe options to control redaction behavior.
Returns
- string
 Returns redacted short date formatted for the current CultureInfo.
RedactDate(DateTime)
Redacts the provided date.
string RedactDate(DateTime date)
  Parameters
dateDateTimeThe date to redact.
Returns
- string
 Returns redacted short date formatted for the current CultureInfo.
RedactDate(DateTime, DateRedactorOptions)
Redacts the provided date.
string RedactDate(DateTime date, DateRedactorOptions redactorOptions)
  Parameters
dateDateTimeThe date to redact.
redactorOptionsDateRedactorOptionsThe options to control redaction behavior.
Returns
- string
 Returns redacted short date formatted for the current CultureInfo.
RedactEmailAddress(MailAddress)
Redacts the provided email address.
string RedactEmailAddress(MailAddress emailAddress)
  Parameters
emailAddressMailAddressThe email address to redact.
Returns
RedactEmailAddress(MailAddress, EmailAddressRedactorOptions)
Redacts the provided email address.
string RedactEmailAddress(MailAddress emailAddress, EmailAddressRedactorOptions redactorOptions)
  Parameters
emailAddressMailAddressThe email address to redact.
redactorOptionsEmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactEmailAddress(ReadOnlySpan<char>)
Redacts the provided email address.
ReadOnlySpan<char> RedactEmailAddress(ReadOnlySpan<char> emailAddress)
  Parameters
emailAddressReadOnlySpan<char>The email address to redact.
Returns
RedactEmailAddress(ReadOnlySpan<char>, EmailAddressRedactorOptions)
Redacts the provided email address.
ReadOnlySpan<char> RedactEmailAddress(ReadOnlySpan<char> emailAddress, EmailAddressRedactorOptions redactorOptions)
  Parameters
emailAddressReadOnlySpan<char>The email address to redact.
redactorOptionsEmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactEmailAddress(string)
Redacts the provided email address.
string RedactEmailAddress(string emailAddress)
  Parameters
emailAddressstringThe email address to redact.
Returns
RedactEmailAddress(string, EmailAddressRedactorOptions)
Redacts the provided email address.
string RedactEmailAddress(string emailAddress, EmailAddressRedactorOptions redactorOptions)
  Parameters
emailAddressstringThe email address to redact.
redactorOptionsEmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv4Address(ReadOnlySpan<char>)
Redacts the provided IPv4 address.
ReadOnlySpan<char> RedactIPv4Address(ReadOnlySpan<char> ipAddress)
  Parameters
ipAddressReadOnlySpan<char>The IPv4 address to redact.
Returns
RedactIPv4Address(ReadOnlySpan<char>, IPv4AddressRedactorOptions)
Redacts the provided IPv4 address.
ReadOnlySpan<char> RedactIPv4Address(ReadOnlySpan<char> ipAddress, IPv4AddressRedactorOptions redactorOptions)
  Parameters
ipAddressReadOnlySpan<char>The IPv4 address to redact.
redactorOptionsIPv4AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv4Address(string)
Redacts the provided IPv4 address.
string RedactIPv4Address(string ipAddress)
  Parameters
ipAddressstringThe IPv4 address to redact.
Returns
RedactIPv4Address(string, IPv4AddressRedactorOptions)
Redacts the provided IPv4 address.
string RedactIPv4Address(string ipAddress, IPv4AddressRedactorOptions redactorOptions)
  Parameters
ipAddressstringThe IPv4 address to redact.
redactorOptionsIPv4AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv6Address(ReadOnlySpan<char>)
Redacts the provided IPv6 address.
ReadOnlySpan<char> RedactIPv6Address(ReadOnlySpan<char> ipAddress)
  Parameters
ipAddressReadOnlySpan<char>The IPv6 address to redact
Returns
RedactIPv6Address(ReadOnlySpan<char>, IPv6AddressRedactorOptions)
Redacts the provided IPv6 address.
ReadOnlySpan<char> RedactIPv6Address(ReadOnlySpan<char> ipAddress, IPv6AddressRedactorOptions redactorOptions)
  Parameters
ipAddressReadOnlySpan<char>The IPv6 address to redact.
redactorOptionsIPv6AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv6Address(string)
Redacts the provided IPv6 address.
string RedactIPv6Address(string ipAddress)
  Parameters
ipAddressstringThe IPv6 address to redact
Returns
RedactIPv6Address(string, IPv6AddressRedactorOptions)
Redacts the provided IPv6 address.
string RedactIPv6Address(string ipAddress, IPv6AddressRedactorOptions redactorOptions)
  Parameters
ipAddressstringThe IPv6 address to redact.
redactorOptionsIPv6AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactMACAddress(ReadOnlySpan<char>)
Redacts the provided MAC address.
ReadOnlySpan<char> RedactMACAddress(ReadOnlySpan<char> macAddress)
  Parameters
macAddressReadOnlySpan<char>The MAC address to redact.
Returns
RedactMACAddress(ReadOnlySpan<char>, MACAddressRedactorOptions)
Redacts the provided MAC address.
ReadOnlySpan<char> RedactMACAddress(ReadOnlySpan<char> macAddress, MACAddressRedactorOptions redactorOptions)
  Parameters
macAddressReadOnlySpan<char>The MAC address to redact.
redactorOptionsMACAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactMACAddress(string)
Redacts the provided MAC address.
string RedactMACAddress(string macAddress)
  Parameters
macAddressstringThe MAC address to redact.
Returns
RedactMACAddress(string, MACAddressRedactorOptions)
Redacts the provided MAC address.
string RedactMACAddress(string macAddress, MACAddressRedactorOptions redactorOptions)
  Parameters
macAddressstringThe MAC address to redact.
redactorOptionsMACAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactPhoneNumber(ReadOnlySpan<char>)
Redacts the provided phone number.
ReadOnlySpan<char> RedactPhoneNumber(ReadOnlySpan<char> phoneNumber)
  Parameters
phoneNumberReadOnlySpan<char>The phone number to redact.
Returns
RedactPhoneNumber(ReadOnlySpan<char>, PhoneNumberRedactorOptions)
Redacts the provided phone number.
ReadOnlySpan<char> RedactPhoneNumber(ReadOnlySpan<char> phoneNumber, PhoneNumberRedactorOptions redactorOptions)
  Parameters
phoneNumberReadOnlySpan<char>The phone number to redact.
redactorOptionsPhoneNumberRedactorOptionsThe options to control redaction behavior.
Returns
RedactPhoneNumber(string)
Redacts the provided phone number.
string RedactPhoneNumber(string phoneNumber)
  Parameters
phoneNumberstringThe phone number to redact.
Returns
RedactPhoneNumber(string, PhoneNumberRedactorOptions)
Redacts the provided phone number.
string RedactPhoneNumber(string phoneNumber, PhoneNumberRedactorOptions redactorOptions)
  Parameters
phoneNumberstringThe phone number to redact.
redactorOptionsPhoneNumberRedactorOptionsThe options to control redaction behavior.
Returns
RedactString(ReadOnlySpan<char>)
Redacts the provided string.
ReadOnlySpan<char> RedactString(ReadOnlySpan<char> value)
  Parameters
valueReadOnlySpan<char>The string to redact.
Returns
RedactString(ReadOnlySpan<char>, StringRedactorOptions)
Redacts the provided string.
ReadOnlySpan<char> RedactString(ReadOnlySpan<char> value, StringRedactorOptions redactorOptions)
  Parameters
valueReadOnlySpan<char>The string to redact.
redactorOptionsStringRedactorOptionsThe redactorOptions to control redaction behavior.
Returns
RedactString(string)
Redacts the provided string.
string RedactString(string value)
  Parameters
valuestringThe string to redact.
Returns
RedactString(string, StringRedactorOptions)
Redacts the provided string.
string RedactString(string value, StringRedactorOptions redactorOptions)
  Parameters
valuestringThe string to redact.
redactorOptionsStringRedactorOptionsThe redactorOptions to control redaction behavior.