Package org.candlepin.auth

Examples of org.candlepin.auth.Access


            log.debug("Allowing invokation to proceed with no authentication: {}",
                method.getName());
            return;
        }

        Access defaultAccess = getAssumedAccessType(method);

        // Need to check after examining all parameters to see if we found any:
        boolean foundVerifiedParameters = false;
        Owner owner = null;

        Annotation[][] annotations = method.getParameterAnnotations();
        for (int i = 0; i < annotations.length; i++) {
            for (Annotation a : annotations[i]) {
                if (a instanceof Verify) {
                    foundVerifiedParameters = true;
                    Access requiredAccess = defaultAccess;

                    @SuppressWarnings("rawtypes")
                    Class verifyType = ((Verify) a).value();
                    if (((Verify) a).require() != Access.NONE) {
                        requiredAccess = ((Verify) a).require();
View Full Code Here


     * @return the required minimum access type
     */
    protected Access getAssumedAccessType(Method method) {
        // Assume the minimum level to start with, and bump up as we see
        // stricter annotations
        Access minimumLevel = Access.READ_ONLY;

        // If we had write or delete access types, that would go here,
        // and we'd only break on the access.all type.
        for (Annotation annotation : method.getAnnotations()) {
            if (annotation instanceof POST) {
View Full Code Here

TOP

Related Classes of org.candlepin.auth.Access

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.