MoriaTicket ssoTicket = new MoriaTicket(MoriaTicketType.SSO_TICKET, null, ssoTicketTTL, userData);
final Long expiryTime = new Long(((Long) ticketTTLs.get(MoriaTicketType.SSO_TICKET)).longValue() + new Date().getTime()); MoriaTicket ssoTicket = new MoriaTicket(MoriaTicketType.SSO_TICKET, null, expiryTime, userData);
    public String cacheUserData(final HashMap attributes) throws MoriaStoreException {        /* Validate argument. */        if (attributes == null) {            throw new IllegalArgumentException("attributes cannot be null");        }        CachedUserData userData = new CachedUserData(attributes);        /* Create new SSO ticket with null-value servicePrincipal. */        MoriaTicket ssoTicket = new MoriaTicket(MoriaTicketType.SSO_TICKET, null, ssoTicketTTL, userData);        insertIntoStore(ssoTicket);        return ssoTicket.getTicketId();    }