public static class OpenAmAccessToken.Builder extends Object
OpenAmAccessToken
.Constructor and Description |
---|
OpenAmAccessToken.Builder(TimeService time)
Creates a new Builder with the given
TimeService . |
Modifier and Type | Method and Description |
---|---|
OpenAmAccessToken |
build(JsonValue raw)
Builds a
OpenAmAccessToken from a raw JSON response returned by the /oauth2/tokeninfo
endpoint. |
public OpenAmAccessToken.Builder(TimeService time)
TimeService
.time
- time service used to compute the expiration datepublic OpenAmAccessToken build(JsonValue raw) throws OAuth2TokenException
OpenAmAccessToken
from a raw JSON response returned by the /oauth2/tokeninfo
endpoint.raw
- JSON responseOpenAmAccessToken
OAuth2TokenException
- if the JSON response is not formatted correctly.Copyright 2011-2015 ForgeRock AS.