added getParentKey() to AccessToken interface

This commit is contained in:
Sebastian Sdorra
2018-12-17 13:06:11 +01:00
parent 6f29aed9df
commit af7e776fdd
2 changed files with 13 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ public final class JwtAccessToken implements AccessToken {
return ofNullable(claims.get(REFRESHABLE_UNTIL_CLAIM_KEY, Date.class));
}
@Override
public Optional<String> getParentKey() {
return ofNullable(claims.get(PARENT_TOKEN_ID_CLAIM_KEY).toString());
}