Package io.milton.ftp
Class WrappingFtpSecurityManager
java.lang.Object
io.milton.ftp.WrappingFtpSecurityManager
- All Implemented Interfaces:
UserService,SecurityManager
Wraps a standard milton securitymanager to implement the UserService required
by FTP.
Note that not all FTP methods are implemented, but enough for users to use
FTP.
- Author:
- brad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAuthenticate a digest requestauthenticate(String string, String string1) booleanauthorise(Request rqst, Request.Method method, Auth auth, Resource rsrc) Check that the authenticater user can access the given resource for the given method.voidNot supportedbooleanNot supportedString[]Not supportedgetUserByName(String name, String domain) booleanvoidsave(MiltonUser user) Save the user.
-
Constructor Details
-
WrappingFtpSecurityManager
-
-
Method Details
-
delete
Not supported- Specified by:
deletein interfaceUserService- Parameters:
name-
-
doesExist
Not supported- Specified by:
doesExistin interfaceUserService- Parameters:
name-- Returns:
-
getAllUserNames
Not supported- Specified by:
getAllUserNamesin interfaceUserService- Returns:
-
getUserByName
- Specified by:
getUserByNamein interfaceUserService- Parameters:
name- - milton form of the username E.g. user@authoritydomain- - the domain to login into- Returns:
-
save
Description copied from interface:UserServiceSave the user. You don't need to implement this- Specified by:
savein interfaceUserService
-
authenticate
Description copied from interface:SecurityManagerAuthenticate a digest request- Specified by:
authenticatein interfaceSecurityManager- Returns:
- See Also:
-
authenticate
- Specified by:
authenticatein interfaceSecurityManager- Returns:
- - some object representing the user to associate with the request
-
authorise
Description copied from interface:SecurityManagerCheck that the authenticater user can access the given resource for the given method.- Specified by:
authorisein interfaceSecurityManager- Parameters:
rqst- - the request itselfmethod- - the request methodauth- - authentication object representing the current userrsrc- - the resource being operated on- Returns:
- - true to indicate that the user is allowed access
-
getRealm
- Specified by:
getRealmin interfaceSecurityManager- Returns:
- - the name of the security realm this is managing
-
isDigestAllowed
public boolean isDigestAllowed()- Specified by:
isDigestAllowedin interfaceSecurityManager
-