SecretMatch

org.llm4s.util.SecretPatterns.SecretMatch
See theSecretMatch companion object
final case class SecretMatch

A single regex match of a secret inside a larger string.

Value parameters

endIndex

Exclusive end position in the original string.

secretType

The SecretType that produced this match.

startIndex

Inclusive start position in the original string.

value

The matched secret text (un-redacted).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def redactedValue: String

The placeholder that should replace value when masking.

The placeholder that should replace value when masking.

Attributes

def withEndIndex(endIndex: Int): SecretMatch

Sets the exclusive end position.

Sets the exclusive end position.

Attributes

Sets the SecretType that produced this match.

Sets the SecretType that produced this match.

Attributes

def withStartIndex(startIndex: Int): SecretMatch

Sets the inclusive start position.

Sets the inclusive start position.

Attributes

def withValue(value: String): SecretMatch

Sets the matched secret text.

Sets the matched secret text.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product