org.apache.ftpserver.ftplet
Interface Authority


public interface Authority

Interface for an authority granted to the user, typical example is write access or the number of concurrent logins


Method Summary
 AuthorizationRequest authorize(AuthorizationRequest request)
          Authorize an AuthorizationRequest.
 boolean canAuthorize(AuthorizationRequest request)
          Indicates weather this Authority can authorize a certain request
 

Method Detail

canAuthorize

boolean canAuthorize(AuthorizationRequest request)
Indicates weather this Authority can authorize a certain request

Parameters:
request - The request to authorize
Returns:
True if the request can be authorized by this Authority

authorize

AuthorizationRequest authorize(AuthorizationRequest request)
Authorize an AuthorizationRequest.

Parameters:
request - The AuthorizationRequest
Returns:
True if the request is authorized, false otherwise If the request can not be authorized (as checked by canAuthorize(AuthorizationRequest) by this Authority, false is returned.


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.