SecretMatch

org.llm4s.util.SecretPatterns.SecretMatch
final case class SecretMatch(secretType: SecretType, value: String, startIndex: Int, endIndex: Int)

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

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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product