All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.plsar.security.renderer.AuthenticatedRenderer Maven / Gradle / Ivy

Go to download

PLSA.R is an Open Source Server + Framework Environment for small to large scale requirements. There are no static references, no file reads, access to static fields per request. Everything is either cached and or instantiated on the fly. PLSA.R runs via one command so there are no .war files to deploy, no additional plugins to install it is a simple yet powerful alternative to container deployment environments.

There is a newer version: 3.0.1
Show newest version
package net.plsar.security.renderer;

import net.plsar.implement.ViewRenderer;
import net.plsar.model.NetworkRequest;
import net.plsar.security.SecurityManager;
import net.plsar.security.SecurityManagerHelper;

public class AuthenticatedRenderer implements ViewRenderer {

    public boolean truthy(NetworkRequest networkRequest){
        SecurityManagerHelper securityManagerHelper = new SecurityManagerHelper();
        SecurityManager security = securityManagerHelper.getSecurityManager(networkRequest);
        return security.isAuthenticated(networkRequest);
    }

    public String render(NetworkRequest networkRequest){
        return "";
    }

    public String getKey() {
        return "plsar:authenticated";
    }

    public Boolean isEval() {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy