GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bug in MqttExample.java · Issue #734 · GoogleCloudPlatform/java-docs-samples

bug in MqttExample.java #734

New issue
Copy link
New issue
Copy link
Closed
Closed
bug in MqttExample.java#734
Copy link
Assignees
gguuss

Description

@cld2005
cld2005
opened on Jun 28, 2017
Issue body actions

In which file did you encounter the issue?

java-docs-samples/iot/api-client/mqtt_example/src/main/java/com/google/cloud/iot/examples/MqttExample.java

Did you change the file? If so, how?

No I did not.

Describe the issue

line 56 KeyFactory kf = KeyFactory.getInstance("RSA256");

this line should be changed to KeyFactory kf = KeyFactory.getInstance("RSA");

https://docs.oracle.com/javase/8/docs/api/java/security/KeyFactory.html

line 110 & line 113

if (options.algorithm == "RSA256") {

} else if (options.algorithm == "ES256") {

should not use "==" to compare strings. use .equals("RSA256") .

Activity

  1. lesv
    assigned
    gguuss
    on Jun 29, 2017
  2. lesv
    closed this as completedin #745on Jul 7, 2017
  3. minherz
    added 3 commits that reference this issue on Nov 9, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-errorrep…

    8588798

    chore(deps): update dependency com.google.cloud:google-cloud-errorrep…

    b8d24ce

    chore(deps): update dependency com.google.cloud:google-cloud-errorrep…

    f47a251
  4. Shabirmean
    added a commit that references this issue on Nov 11, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v24.…

    8b42149
  5. charlieyu1996
    added a commit that references this issue on Nov 15, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    78d5177
  6. Shabirmean
    added a commit that references this issue on Nov 18, 2022

    chore(deps): update dependency com.google.cloud.samples:shared-config…

    6cdb13d
  7. gcf-merge-on-green
    added a commit that references this issue on Dec 20, 2022

    samples: migrate code from googleapis/java-aiplatform (#7451)

    24b693d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @gguuss
    gguuss

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.