AuthUtils.java 688 Bytes
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.granite.security.user.UserManagementService
 *  org.apache.felix.scr.annotations.Reference
 */
package com.adobe.forms.common.utils;

import com.adobe.granite.security.user.UserManagementService;
import org.apache.felix.scr.annotations.Reference;

public class AuthUtils {
    @Reference
    private static UserManagementService userManagementService;

    @Deprecated
    public static boolean isAnonymousLogin(String userId) {
        String anonymousId = userManagementService != null ? userManagementService.getAnonymousId() : "anonymous";
        return anonymousId.equals(userId);
    }
}