Package org.dcache.xrootd.plugins
Interface AuthorizationHandler
-
- All Known Implementing Classes:
NoAuthorizationHandler
public interface AuthorizationHandlerThe interface to authorization and path mapping plugins.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringauthorize(javax.security.auth.Subject subject, java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> opaque, int request, XrootdProtocol.FilePerm mode)Authorization and path mapping hook.
-
-
-
Method Detail
-
authorize
java.lang.String authorize(javax.security.auth.Subject subject, java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> opaque, int request, XrootdProtocol.FilePerm mode) throws XrootdException, java.lang.SecurityException, java.security.GeneralSecurityExceptionAuthorization and path mapping hook. Called upon any xrootd door operation. Implementations may perform authorization checks for the requested operation.- Parameters:
subject- the userlocalAddress- local socket address of client connectionremoteAddress- remote socket address of client connectionpath- the file which is checkedopaque- the opaque data from the requestrequest- xrootd request id of the operationmode- the requested mode- Throws:
java.lang.SecurityException- when the requested access is deniedjava.security.GeneralSecurityException- when the process of authorizing failsXrootdException- when some specific error should be propagated back to the xrootd client.
-
-