Skip to content

Commit

Permalink
Made IdToken public method to access from the app
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiro committed Nov 5, 2021
1 parent 4ed59f9 commit 63be66f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/java/net/openid/appauth/IdToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private static JSONObject parseJwtSection(String section) throws JSONException {
return new JSONObject(jsonString);
}

static IdToken from(String token) throws JSONException, IdTokenException {
public static IdToken from(String token) throws JSONException, IdTokenException {
String[] sections = token.split("\\.");

if (sections.length <= 1) {
Expand Down Expand Up @@ -251,7 +251,7 @@ static class IdTokenException extends Exception {
}
}

public static Map<String, Object> toMap(JSONObject jsonObj) throws JSONException {
static Map<String, Object> toMap(JSONObject jsonObj) throws JSONException {
Map<String, Object> map = new HashMap<>();
Iterator<String> keys = jsonObj.keys();
while (keys.hasNext()) {
Expand All @@ -267,7 +267,7 @@ public static Map<String, Object> toMap(JSONObject jsonObj) throws JSONException
return map;
}

public static List<Object> toList(JSONArray array) throws JSONException {
static List<Object> toList(JSONArray array) throws JSONException {
List<Object> list = new ArrayList<>();
for (int i = 0; i < array.length(); i++) {
Object value = array.get(i);
Expand Down

0 comments on commit 63be66f

Please sign in to comment.