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

org.trellisldp.test.AuthCommonTests Maven / Gradle / Ivy

There is a newer version: 0.19.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trellisldp.test;

/**
 * Common Authorization tests.
 */
public interface AuthCommonTests extends CommonTests {

    String OK_RESPONSE = "Verify an OK response";
    String FORBIDDEN_RESPONSE = "Verify a Forbidden response";
    String NOT_FOUND_RESPONSE = "Verify a Not Found response";
    String UNAUTHORIZED_RESPONSE = "Verify an Unauthorized response";
    String INSERT_PROP_FOO = "INSERT { <>  \"Foo\" } WHERE {}";
    String INSERT_PROP_BAR = "INSERT { <>  \"Bar\" } WHERE {}";
    String EXT_ACL = "?ext=acl";
    String PATCH = "PATCH";

    /**
     * Get the authorization header.
     * @return the authorization header
     */
    String getAuthorizationHeader();

    /**
     * Get the public container location.
     * @return the location of the public container
     */
    String getPublicContainer();

    /**
     * Get the public container child location.
     * @return the location of the public container child
     */
    String getPublicContainerChild();

    /**
     * Get the protected container location.
     * @return the location of the protected container
     */
    String getProtectedContainer();

    /**
     * Get the protected container child location.
     * @return the location of the protected container child
     */
    String getProtectedContainerChild();

    /**
     * Get the private container location.
     * @return the location of the private container
     */
    String getPrivateContainer();

    /**
     * Get the private container child location.
     * @return the location of the private container child
     */
    String getPrivateContainerChild();

    /**
     * Get the default container location.
     * @return the location of the default container
     */
    String getDefaultContainer();

    /**
     * Get the default container child location.
     * @return the location of the default container child
     */
    String getDefaultContainerChild();

    /**
     * Get the group container location.
     * @return the location of the group container
     */
    String getGroupContainer();

    /**
     * Get the group container child location.
     * @return the location of the group container child
     */
    String getGroupContainerChild();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy