<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [strings](./case-definition-dsl.matchers.strings.md) &gt; [Base64Encoded](./case-definition-dsl.matchers.strings.base64encoded.md)

## matchers.strings.Base64Encoded class

Transformation matcher that matches a base64 encoded version of the given string or string matcher

WARNING: Since many strings are accidentally decodable as base64, this matcher is best combined with a more restrictive string matcher (eg `StringifiedJson`<!-- -->).

**Signature:**

```typescript
export declare class Base64Encoded extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)(child)](./case-definition-dsl.matchers.strings.base64encoded._constructor_.md)

</td><td>

</td><td>

Transformation matcher that matches a base64 encoded version of the given string or string matcher

WARNING: Since many strings are accidentally decodable as base64, this matcher is best combined with a more restrictive string matcher (eg `StringifiedJson`<!-- -->).

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.strings.base64encoded.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
