Factory

JwsBuilderFactory

Magento\JwtFrameworkAdapter\Model\JwsBuilderFactory

What it does

This factory class creates instances of JWSBuilder (JSON Web Signature Builder) used for creating and signing JWT tokens in Magento 2.

Developers would use this factory when they need to generate digitally signed tokens for authentication, API security, or secure data exchange.

The factory automatically configures the JWSBuilder with the appropriate cryptographic algorithms through the injected AlgorithmManager.

Public Methods

  • create()