public static class OpenAmAccessToken.Builder extends Object
OpenAmAccessToken
.Constructor and Description |
---|
OpenAmAccessToken.Builder(org.forgerock.util.time.TimeService time)
Creates a new Builder with the given
TimeService . |
Modifier and Type | Method and Description |
---|---|
OpenAmAccessToken |
build(org.forgerock.json.fluent.JsonValue raw)
Builds a
OpenAmAccessToken from a raw JSON response returned by the /oauth2/tokeninfo
endpoint. |
public OpenAmAccessToken.Builder(org.forgerock.util.time.TimeService time)
TimeService
.time
- time service used to compute the expiration datepublic OpenAmAccessToken build(org.forgerock.json.fluent.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 © 2014 ForgeRock AS. All rights reserved.