# PolicyList to AuthorizationServerPolicyList is confusing us

**URL:** <https://devforum.okta.com/t/policylist-to-authorizationserverpolicylist-is-confusing-us/16112>\
**Category:** Questions\
**Created:** [September 13, 2021, 8:50pm UTC](https://devforum.okta.com/t/policylist-to-authorizationserverpolicylist-is-confusing-us/16112 "2021-09-13T20:50:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjashinsky](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jjashinsky](https://devforum.okta.com/u/jjashinsky)\
**Post date:** [September 13, 2021, 8:50pm UTC](https://devforum.okta.com/t/policylist-to-authorizationserverpolicylist-is-confusing-us/16112/1 "2021-09-13T20:50:34Z")

</div>

We’re trying to update our Java Okta SDK from 2.0.1 to 4.1.1, and our code that calls client.listPolicies(“PASSWORD”) is now returning AuthorizationServerPolicyList instead of PolicyList. The confusing part is that AuthorizationServerPolicyList appears to be incompatible with PasswordPolicy, which then leads to our code crashing. Is there some other way now to obtain a list of password policies?

---

<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:** [February 8, 2024, 7:18pm UTC](https://devforum.okta.com/t/policylist-to-authorizationserverpolicylist-is-confusing-us/16112/2 "2024-02-08T19:18:46Z")

</div>

Closed on February 8, 2024, 7:18pm UTC


