Package 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
- Author:
- Apache MINA Project
-
Method Summary
Modifier and TypeMethodDescriptionauthorize(AuthorizationRequest request) Authorize anAuthorizationRequest.booleancanAuthorize(AuthorizationRequest request) Indicates weather this Authority can authorize a certain request
-
Method Details
-
canAuthorize
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
Authorize anAuthorizationRequest.- Parameters:
request- TheAuthorizationRequest- Returns:
- Returns a populated AuthorizationRequest as long as If
canAuthorize(AuthorizationRequest)returnstruefor the AuthorizationRequest, otherwise returnsnull.canAuthorize(AuthorizationRequest)should always be checked before calling this method.
-