@@ -0,0 +1,2283 @@
+/*%0A * Licensed to DuraSpace under one or more contributor license agreements.%0A * See the NOTICE file distributed with this work for additional information%0A * regarding copyright ownership.%0A *%0A * DuraSpace licenses this file to you under the Apache License,%0A * Version 2.0 (the %22License%22); you may not use this file except in%0A * compliance with the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fcrepo.auth.webac;%0A%0Aimport org.apache.shiro.authc.AuthenticationException;%0Aimport org.apache.shiro.authc.AuthenticationInfo;%0Aimport org.apache.shiro.authc.AuthenticationToken;%0Aimport org.apache.shiro.authz.AuthorizationInfo;%0Aimport org.apache.shiro.authz.SimpleAuthorizationInfo;%0Aimport org.apache.shiro.realm.AuthorizingRealm;%0Aimport org.apache.shiro.subject.PrincipalCollection;%0A%0A/**%0A * Authorization-only realm that performs authorization checks using WebAC ACLs stored in a Fedora repository. It%0A * locates the ACL for the currently requested resource and parses the ACL RDF into a set of %7B@link WebACPermission%7D%0A * instances.%0A *%0A * @author peichman%0A */%0Apublic class WebACAuthorizingRealm extends AuthorizingRealm %7B%0A%0A    /* (non-Javadoc)%0A     * @see org.apache.shiro.realm.AuthorizingRealm#doGetAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection)%0A     */%0A    @Override%0A    protected AuthorizationInfo doGetAuthorizationInfo(final PrincipalCollection principals) %7B%0A        final SimpleAuthorizationInfo authzInfo = new SimpleAuthorizationInfo();%0A        return authzInfo;%0A    %7D%0A%0A    /**%0A     * This realm is authorization-only.%0A     */%0A    @Override%0A    protected AuthenticationInfo doGetAuthenticationInfo(final AuthenticationToken token)%0A            throws AuthenticationException %7B%0A        return null;%0A    %7D%0A%0A    /**%0A     * This realm is authorization-only.%0A     */%0A    @Override%0A    public boolean supports(final AuthenticationToken token) %7B%0A        return false;%0A    %7D%0A%7D%0A

Create WebACAuthorizingRealm class. (#1325)