@Test public void shouldReconstructAuthId() { authIdHelper.reconstructAuthId("AUTH_ID"); verify(jwtBuilderFactory).reconstruct("AUTH_ID", SignedJwt.class); }
public SignedJwt reconstructAuthId(String authId) { try { return jwtBuilderFactory.reconstruct(authId, SignedJwt.class); } catch (JwtRuntimeException e) { throw new RestAuthException(Response.Status.BAD_REQUEST, "Failed to parse JWT, " + e.getLocalizedMessage(), e); } }
AuthIdHelper { public SignedJwt reconstructAuthId(String authId) { try { return jwtBuilderFactory.reconstruct(authId, SignedJwt.class); } catch (JwtRuntimeException e) { throw new RestAuthException(Response.Status.BAD_REQUEST, "Failed to parse JWT, " + e.getLocalizedMessage(), e); } } }
AuthIdHelper { public SignedJwt reconstructAuthId(String authId) { try { return jwtBuilderFactory.reconstruct(authId, SignedJwt.class); } catch (JwtRuntimeException e) { throw new RestAuthException(Response.Status.BAD_REQUEST, "Failed to parse JWT, " + e.getLocalizedMessage(), e); } } @Inject  AuthIdHelper(CoreServicesWrapper coreServicesWrapper, AMKeyProvider amKeyProvider,
            JwtBuilderFactory jwtBuilderFactory); }
AuthIdHelper { public SignedJwt reconstructAuthId(String authId) { try { return jwtBuilderFactory.reconstruct(authId, SignedJwt.class); } catch (JwtRuntimeException e) { throw new RestAuthException(Response.Status.BAD_REQUEST, "Failed to parse JWT, " + e.getLocalizedMessage(), e); } } @Inject  AuthIdHelper(CoreServicesWrapper coreServicesWrapper, AMKeyProvider amKeyProvider,
            JwtBuilderFactory jwtBuilderFactory); String createAuthId(LoginConfiguration loginConfiguration, AuthenticationContext authContext); SignedJwt reconstructAuthId(String authId); void verifyAuthId(String realmDN, String authId); }
AuthIdHelper { public SignedJwt reconstructAuthId(String authId) { try { return jwtBuilderFactory.reconstruct(authId, SignedJwt.class); } catch (JwtRuntimeException e) { throw new RestAuthException(Response.Status.BAD_REQUEST, "Failed to parse JWT, " + e.getLocalizedMessage(), e); } } @Inject  AuthIdHelper(CoreServicesWrapper coreServicesWrapper, AMKeyProvider amKeyProvider,
            JwtBuilderFactory jwtBuilderFactory); String createAuthId(LoginConfiguration loginConfiguration, AuthenticationContext authContext); SignedJwt reconstructAuthId(String authId); void verifyAuthId(String realmDN, String authId);  }