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

com.adobe.granite.oauth.server.Scope Maven / Gradle / Ivy

There is a newer version: 6.5.21
Show newest version
/*************************************************************************
 *
 * ADOBE CONFIDENTIAL
 * __________________
 *
 *  Copyright 2014 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Adobe Systems Incorporated and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
package com.adobe.granite.oauth.server;

import javax.servlet.http.HttpServletRequest;
import org.apache.jackrabbit.api.security.user.User;

/**
 * The Scope provides a simple API to 
 * handle scopes 
 */
public interface Scope {
    
    /**
     * Get the scope name
     * 
     * @return the scope name
     */
    public String getName();
    
    /**
     * Get the resource path associated with the scope
     * 
     * @param user The authenticated user
     * @return The resource path associated to the scope
     */
    public String getResourcePath(User user);
    
    /**
     * Get the endpoint associated with the scope
     * 
     * @return the endpoint associated to the scope
     */
    public String getEndpoint();
    
    /**
     * Get the description associated with the scope
     * 
     * @param request The HttpServletRequest request
     * @return the scope description
     */
    public String getDescription(HttpServletRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy