class AuthIdHelper {

    public SignedJwt reconstructAuthId(String authId) throws RestAuthException {
        try {
            return jwtBuilderFactory.reconstruct(authId, SignedJwt.class);
        } catch (JwtRuntimeException e) {
            throw new RestAuthException(ResourceException.BAD_REQUEST, "Failed to parse JWT, "
                    + e.getLocalizedMessage(), e);
        }
    }

    @Inject public  AuthIdHelper(CoreServicesWrapper coreServicesWrapper,
            JwtBuilderFactory jwtBuilderFactory, SigningManager signingManager);

}