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
creditCardNumber
ReadOnlySpan<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
creditCardNumber
ReadOnlySpan<char>The credit card number to redact.
redactorOptions
CreditCardRedactorOptionsThe options to control redaction behavior.
Returns
RedactCreditCard(string)
Redacts the provided credit card number.
string RedactCreditCard(string creditCardNumber)
Parameters
creditCardNumber
stringThe credit card number to redact.
Returns
RedactCreditCard(string, CreditCardRedactorOptions)
Redacts the provided credit card number.
string RedactCreditCard(string creditCardNumber, CreditCardRedactorOptions redactorOptions)
Parameters
creditCardNumber
stringThe credit card number to redact.
redactorOptions
CreditCardRedactorOptionsThe options to control redaction behavior.
Returns
RedactDate(DateOnly)
Redacts the provided date.
string RedactDate(DateOnly date)
Parameters
date
DateOnlyThe 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
date
DateOnlyThe date to redact.
redactorOptions
DateRedactorOptionsThe 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
date
DateTimeThe 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
date
DateTimeThe date to redact.
redactorOptions
DateRedactorOptionsThe 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
emailAddress
MailAddressThe email address to redact.
Returns
RedactEmailAddress(MailAddress, EmailAddressRedactorOptions)
Redacts the provided email address.
string RedactEmailAddress(MailAddress emailAddress, EmailAddressRedactorOptions redactorOptions)
Parameters
emailAddress
MailAddressThe email address to redact.
redactorOptions
EmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactEmailAddress(ReadOnlySpan<char>)
Redacts the provided email address.
ReadOnlySpan<char> RedactEmailAddress(ReadOnlySpan<char> emailAddress)
Parameters
emailAddress
ReadOnlySpan<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
emailAddress
ReadOnlySpan<char>The email address to redact.
redactorOptions
EmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactEmailAddress(string)
Redacts the provided email address.
string RedactEmailAddress(string emailAddress)
Parameters
emailAddress
stringThe email address to redact.
Returns
RedactEmailAddress(string, EmailAddressRedactorOptions)
Redacts the provided email address.
string RedactEmailAddress(string emailAddress, EmailAddressRedactorOptions redactorOptions)
Parameters
emailAddress
stringThe email address to redact.
redactorOptions
EmailAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv4Address(ReadOnlySpan<char>)
Redacts the provided IPv4 address.
ReadOnlySpan<char> RedactIPv4Address(ReadOnlySpan<char> ipAddress)
Parameters
ipAddress
ReadOnlySpan<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
ipAddress
ReadOnlySpan<char>The IPv4 address to redact.
redactorOptions
IPv4AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv4Address(string)
Redacts the provided IPv4 address.
string RedactIPv4Address(string ipAddress)
Parameters
ipAddress
stringThe IPv4 address to redact.
Returns
RedactIPv4Address(string, IPv4AddressRedactorOptions)
Redacts the provided IPv4 address.
string RedactIPv4Address(string ipAddress, IPv4AddressRedactorOptions redactorOptions)
Parameters
ipAddress
stringThe IPv4 address to redact.
redactorOptions
IPv4AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv6Address(ReadOnlySpan<char>)
Redacts the provided IPv6 address.
ReadOnlySpan<char> RedactIPv6Address(ReadOnlySpan<char> ipAddress)
Parameters
ipAddress
ReadOnlySpan<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
ipAddress
ReadOnlySpan<char>The IPv6 address to redact.
redactorOptions
IPv6AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactIPv6Address(string)
Redacts the provided IPv6 address.
string RedactIPv6Address(string ipAddress)
Parameters
ipAddress
stringThe IPv6 address to redact
Returns
RedactIPv6Address(string, IPv6AddressRedactorOptions)
Redacts the provided IPv6 address.
string RedactIPv6Address(string ipAddress, IPv6AddressRedactorOptions redactorOptions)
Parameters
ipAddress
stringThe IPv6 address to redact.
redactorOptions
IPv6AddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactMACAddress(ReadOnlySpan<char>)
Redacts the provided MAC address.
ReadOnlySpan<char> RedactMACAddress(ReadOnlySpan<char> macAddress)
Parameters
macAddress
ReadOnlySpan<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
macAddress
ReadOnlySpan<char>The MAC address to redact.
redactorOptions
MACAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactMACAddress(string)
Redacts the provided MAC address.
string RedactMACAddress(string macAddress)
Parameters
macAddress
stringThe MAC address to redact.
Returns
RedactMACAddress(string, MACAddressRedactorOptions)
Redacts the provided MAC address.
string RedactMACAddress(string macAddress, MACAddressRedactorOptions redactorOptions)
Parameters
macAddress
stringThe MAC address to redact.
redactorOptions
MACAddressRedactorOptionsThe options to control redaction behavior.
Returns
RedactPhoneNumber(ReadOnlySpan<char>)
Redacts the provided phone number.
ReadOnlySpan<char> RedactPhoneNumber(ReadOnlySpan<char> phoneNumber)
Parameters
phoneNumber
ReadOnlySpan<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
phoneNumber
ReadOnlySpan<char>The phone number to redact.
redactorOptions
PhoneNumberRedactorOptionsThe options to control redaction behavior.
Returns
RedactPhoneNumber(string)
Redacts the provided phone number.
string RedactPhoneNumber(string phoneNumber)
Parameters
phoneNumber
stringThe phone number to redact.
Returns
RedactPhoneNumber(string, PhoneNumberRedactorOptions)
Redacts the provided phone number.
string RedactPhoneNumber(string phoneNumber, PhoneNumberRedactorOptions redactorOptions)
Parameters
phoneNumber
stringThe phone number to redact.
redactorOptions
PhoneNumberRedactorOptionsThe options to control redaction behavior.
Returns
RedactString(ReadOnlySpan<char>)
Redacts the provided string.
ReadOnlySpan<char> RedactString(ReadOnlySpan<char> value)
Parameters
value
ReadOnlySpan<char>The string to redact.
Returns
RedactString(ReadOnlySpan<char>, StringRedactorOptions)
Redacts the provided string.
ReadOnlySpan<char> RedactString(ReadOnlySpan<char> value, StringRedactorOptions redactorOptions)
Parameters
value
ReadOnlySpan<char>The string to redact.
redactorOptions
StringRedactorOptionsThe redactorOptions to control redaction behavior.
Returns
RedactString(string)
Redacts the provided string.
string RedactString(string value)
Parameters
value
stringThe string to redact.
Returns
RedactString(string, StringRedactorOptions)
Redacts the provided string.
string RedactString(string value, StringRedactorOptions redactorOptions)
Parameters
value
stringThe string to redact.
redactorOptions
StringRedactorOptionsThe redactorOptions to control redaction behavior.