// SecurityStateUtils
//  setAllowed(boolean)
//  getAllowed()

function SecurityStateUtils() {
    this._securityUtils = newBooleanInStorage('SecurityStateUtils.Allowed');

    this.setAllowed = function setAllowed(booleanValue) {
        this._securityUtils.set(booleanValue);
    };

    this.getAllowed = function getAllowed() {
        const booleanValue = this._securityUtils.get();
        return booleanValue;
    };
}

const securityStateUtils = new SecurityStateUtils();
// allocate an object which manages whether the user has browsed to this site
// with the specific guid that is required to access the site