org.apache.ftpserver.ftplet
Interface Authority

All Known Implementing Classes:
ConcurrentLoginPermission, TransferRatePermission, WritePermission

public interface Authority

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

Author:
Apache MINA Project

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:
Returns a populated AuthorizationRequest as long as If canAuthorize(AuthorizationRequest) returns true for the AuthorizationRequest, otherwise returns null. canAuthorize(AuthorizationRequest) should always be checked before calling this method.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.