Package be.c4j.ee.security.exception

Examples of be.c4j.ee.security.exception.OctopusConfigurationException


            // We can't move this to the Extension itself.
            // The producer of this PermissionLookup goes to the database and this isn't possible until we are completely ready.

            PermissionLookup<? extends NamedPermission> permissionLookup = CDIUtil.getBeanManually(PermissionLookup.class);
            if (permissionLookup == null) {
                throw new OctopusConfigurationException("When using the named permissions, please configure them with the PermissionLookup.  See manual ??? TODO");
            }
            result.setNamedPermission(permissionLookup.getPermission(namedPermission.name()));
            return result;
        }
View Full Code Here


            // We can't move this to the Extension itself.
            // The producer of this RoleLookup goes to the database and this isn't possible until we are completely ready.
            RoleLookup<? extends NamedRole> roleLookup = CDIUtil.getBeanManually(RoleLookup.class);
            if (roleLookup == null) {
                throw new OctopusConfigurationException("When using the named roles, please configure them with the RoleLookup.  See manual ??? TODO");
            }

            result.setNamedRole(roleLookup.getRole(namedRole.name()));
            return result;
        }
View Full Code Here

    public NamedDomainPermission(String someName, String someDomain, String actions, String targets) {
        super(actions, targets);
        setDomain(someDomain);
        if (someName == null || someName.trim().length() == 0) {
            throw new OctopusConfigurationException("Named permission can't be null or empty");
        }
        name = someName;
    }
View Full Code Here

    }

    public AuthenticationInfoBuilder realmName(String realmName) {
        if (realmName == null || realmName.trim().length() == 0) {
            throw new OctopusConfigurationException("Realm name can't be empty");
        }
        this.realmName = realmName;
        return this;
    }
View Full Code Here

    private String roleName;

    public NamedApplicationRole(String roleName) {
        if (roleName == null || roleName.trim().length() == 0) {
            throw new OctopusConfigurationException("Role name can't be null or empty");
        }
        this.roleName = roleName;
    }
View Full Code Here

TOP

Related Classes of be.c4j.ee.security.exception.OctopusConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.