Package org.dcache.xrootd.security
Interface TokenValidator
-
public interface TokenValidator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTOKEN_PREFIXBy convention, the token can be prefixed in the path URL by this tag, which should be stripped away before processing.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.lang.StringstripOffPrefix(java.lang.String token)voidvalidate(io.netty.channel.ChannelHandlerContext ctx, java.lang.String token)Handles the implementation-specific authorization procedure.
-
-
-
Field Detail
-
TOKEN_PREFIX
static final java.lang.String TOKEN_PREFIX
By convention, the token can be prefixed in the path URL by this tag, which should be stripped away before processing.- See Also:
- Constant Field Values
-
-
Method Detail
-
stripOffPrefix
static java.lang.String stripOffPrefix(java.lang.String token) throws XrootdException- Throws:
XrootdException
-
validate
void validate(io.netty.channel.ChannelHandlerContext ctx, java.lang.String token) throws XrootdExceptionHandles the implementation-specific authorization procedure.- Parameters:
ctx- of the current channeltoken- passed into the authorization handler- Throws:
XrootdException
-
-