SecretType

org.llm4s.util.SecretPatterns.SecretType
See theSecretType companion object
sealed abstract class SecretType(val name: String, val pattern: Regex, val placeholder: String)

A single category of secret credential.

Each instance carries:

  • name – human-readable label used in error messages
  • pattern – the scala.util.matching.Regex that recognises this credential
  • placeholder – what to write in place of the secret when masking

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnthropicKey
object AwsAccessKey
object GoogleApiKey
object JwtToken
object LangfuseKey
object OpenAIKey
object PrivateKeyPem
object VoyageKey
Show all

Members list

Value members

Concrete methods

def findAll(text: String): Seq[SecretMatch]

Return all non-overlapping matches found in text. Results are ordered by start position.

Return all non-overlapping matches found in text. Results are ordered by start position.

Attributes

Concrete fields

val name: String
val pattern: Regex
val placeholder: String