org.keycloak.services.resources

## Class QRCodeResource

- java.lang.Object
- - org.keycloak.services.resources.QRCodeResource

-     @Path(value="/qrcode")
      public class QRCodeResource
      extends Object

  Create a barcode image
  Author:
    Stian Thorgersen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `QRCodeResource()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | `createQrCode(String contents, String size)` Create a bar code image

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### QRCodeResource

          public QRCodeResource()

  - ### Method Detail

    - #### createQrCode

          @GET
          @Produces(value="image/png")
          public javax.ws.rs.core.Response createQrCode(@QueryParam(value="contents")
                                                            String contents,
                                                            @QueryParam(value="size")
                                                            String size)
                                                 throws javax.servlet.ServletException,
                                                        IOException,
                                                        com.google.zxing.WriterException

      Create a bar code image
      Parameters:
        `contents` -
        `size` -
      Returns:
      Throws:
        `javax.servlet.ServletException`
        `IOException`
        `com.google.zxing.WriterException`

Copyright © 2014. All Rights Reserved.