# Verifying the answer to push notification with Java API

**URL:** <https://devforum.okta.com/t/verifying-the-answer-to-push-notification-with-java-api/7205>\
**Category:** Questions\
**Created:** [December 6, 2019, 7:56am UTC](https://devforum.okta.com/t/verifying-the-answer-to-push-notification-with-java-api/7205 "2019-12-06T07:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![owlswollen](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/owlswollen/32/1500_2.png) [@owlswollen](https://devforum.okta.com/u/owlswollen)\
**Post date:** [December 6, 2019, 7:56am UTC](https://devforum.okta.com/t/verifying-the-answer-to-push-notification-with-java-api/7205/1 "2019-12-06T07:56:03Z")

</div>

How can I get the answer user provides to the push notification through their phone with Java SDK? It requires transactionId in addition to other parameters used in verification of other factors as far as I understand. But where to set this?

---

<div class="post-metadata">

**Author:** ![owlswollen](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/owlswollen/32/1500_2.png) [@owlswollen](https://devforum.okta.com/u/owlswollen)\
**Post date:** [December 10, 2019, 1:16pm UTC](https://devforum.okta.com/t/verifying-the-answer-to-push-notification-with-java-api/7205/2 "2019-12-10T13:16:54Z")

</div>

> <https://github.com/okta/okta-sdk-java/issues/321>
>
> I'm currently developing with this Java SDK on two factor issues. Currently I could use the SDK to issue a PUSH...

```
ExtensibleResource resource = client.instantiate(ExtensibleResource.class);
ExtensibleResource protocolNode = client.instantiate(ExtensibleResource.class);
protocolNode.put("type", "OAUTH");
resource.put("protocol", protocolNode);
ExtensibleResource result = client.http().get(pollUrl, ExtensibleResource.class);
```

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 23, 2024, 7:38pm UTC](https://devforum.okta.com/t/verifying-the-answer-to-push-notification-with-java-api/7205/3 "2024-01-23T19:38:37Z")

</div>

Closed on January 23, 2024, 7:38pm UTC


