@Test (expectedExceptions = RestAuthException.class) public void shouldFailToConvertFromJson() { restAuthX509CallbackHandler.convertFromJson(null, null); fail(); }
public X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback) { throw new RestAuthException(Response.Status.BAD_REQUEST, new UnsupportedOperationException( "X509Certificate must be specified in the initial request. Cannot be converted from a JSON " + "representation.")); }
RestAuthX509CallbackHandler extends AbstractRestAuthCallbackHandler<X509CertificateCallback> { public X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback) { throw new RestAuthException(Response.Status.BAD_REQUEST, new UnsupportedOperationException( "X509Certificate must be specified in the initial request. Cannot be converted from a JSON " + "representation.")); } }
RestAuthX509CallbackHandler extends AbstractRestAuthCallbackHandler<X509CertificateCallback> { public X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback) { throw new RestAuthException(Response.Status.BAD_REQUEST, new UnsupportedOperationException( "X509Certificate must be specified in the initial request. Cannot be converted from a JSON " + "representation.")); }  }
RestAuthX509CallbackHandler extends AbstractRestAuthCallbackHandler<X509CertificateCallback> { public X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback) { throw new RestAuthException(Response.Status.BAD_REQUEST, new UnsupportedOperationException( "X509Certificate must be specified in the initial request. Cannot be converted from a JSON " + "representation.")); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, X509CertificateCallback callback); X509CertificateCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, X509CertificateCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(X509CertificateCallback callback, int index); X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback); }
RestAuthX509CallbackHandler extends AbstractRestAuthCallbackHandler<X509CertificateCallback> { public X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback) { throw new RestAuthException(Response.Status.BAD_REQUEST, new UnsupportedOperationException( "X509Certificate must be specified in the initial request. Cannot be converted from a JSON " + "representation.")); }  boolean updateCallbackFromRequest(HttpHeaders headers, HttpServletRequest request,
            HttpServletResponse response, X509CertificateCallback callback); X509CertificateCallback handle(HttpHeaders headers, HttpServletRequest request, HttpServletResponse response,
            JsonValue postBody, X509CertificateCallback originalCallback); String getCallbackClassName(); JsonValue convertToJson(X509CertificateCallback callback, int index); X509CertificateCallback convertFromJson(X509CertificateCallback callback, JsonValue jsonCallback);  }