Search in sources :

Example 1 with AccountData

use of com.authlete.jaxrs.server.obb.model.AccountData in project java-oauth-server by authlete.

the class AccountsEndpoint method buildResponseBody.

private static ResponseAccountList buildResponseBody() {
    // Build dummy accounts..
    AccountData account = buildAccount();
    AccountData[] data = new AccountData[] { account };
    Links links = new Links().setSelf("/");
    Meta meta = new Meta(1, 1, ObbUtils.formatNow());
    return new ResponseAccountList(data, links, meta);
}
Also used : Meta(com.authlete.jaxrs.server.obb.model.Meta) ResponseAccountList(com.authlete.jaxrs.server.obb.model.ResponseAccountList) AccountData(com.authlete.jaxrs.server.obb.model.AccountData) Links(com.authlete.jaxrs.server.obb.model.Links)

Example 2 with AccountData

use of com.authlete.jaxrs.server.obb.model.AccountData in project java-oauth-server by authlete.

the class FAPI2BaseAccountsEndpoint method buildResponseBody.

private static ResponseAccountList buildResponseBody() {
    // Build dummy accounts..
    AccountData account = buildAccount();
    AccountData[] data = new AccountData[] { account };
    Links links = new Links().setSelf("/");
    Meta meta = new Meta(1, 1, ObbUtils.formatNow());
    return new ResponseAccountList(data, links, meta);
}
Also used : Meta(com.authlete.jaxrs.server.obb.model.Meta) ResponseAccountList(com.authlete.jaxrs.server.obb.model.ResponseAccountList) AccountData(com.authlete.jaxrs.server.obb.model.AccountData) Links(com.authlete.jaxrs.server.obb.model.Links)

Aggregations

AccountData (com.authlete.jaxrs.server.obb.model.AccountData)2 Links (com.authlete.jaxrs.server.obb.model.Links)2 Meta (com.authlete.jaxrs.server.obb.model.Meta)2 ResponseAccountList (com.authlete.jaxrs.server.obb.model.ResponseAccountList)2