return writerFactory.macSigningWriter(ALGORITHM, PASSWORD).jsonToJwt(json);
}
@Before
public void init() {
JwtReaderFactory readerFactory = new NimbusJwtReaderFactory(jwtIssuerValidator, jwtIssuerSharedSecretService);
jwtAuthenticator = new PlayJwtAuthenticator(new PlayJwtRequestExtractor(contextProvider),
new PlayAuthenticationResultHandler(), readerFactory);
}