/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.identity.User
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.policy.variable;

import com.l7tech.identity.User;
import com.l7tech.server.identity.AuthenticationResult;
import com.l7tech.util.Functions;

class as
implements Functions.Unary<String, AuthenticationResult> {
    as() {
    }

    public String call(AuthenticationResult authenticationResult) {
        if (authenticationResult == null) {
            return null;
        }
        User user = authenticationResult.getUser();
        String string = null;
        if (user != null && (string = user.getName()) == null) {
            string = user.getId();
        }
        return string;
    }
}

