Search in sources :

Example 1 with MemcachedGrant

use of org.xdi.oxauth.model.common.MemcachedGrant in project oxAuth by GluuFederation.

the class MemcacheManual method testGrant.

private static MemcachedGrant testGrant() {
    MemcachedGrant grant = new MemcachedGrant();
    grant.setAcrValues("basic");
    grant.setAuthenticationTime(new Date());
    grant.setAuthorizationCodeString(UUID.randomUUID().toString());
    grant.setClient(testClient());
    grant.setGrantId(UUID.randomUUID().toString());
    grant.setNonce(UUID.randomUUID().toString());
    grant.setScopes(Sets.newHashSet("openid"));
    grant.setUser(testUser());
    return grant;
}
Also used : MemcachedGrant(org.xdi.oxauth.model.common.MemcachedGrant) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 MemcachedGrant (org.xdi.oxauth.model.common.MemcachedGrant)1