Package org.dcache.xrootd.plugins
Interface AuthenticationHandler
-
- All Known Implementing Classes:
NoAuthenticationHandler
public interface AuthenticationHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XrootdResponse<AuthenticationRequest>authenticate(AuthenticationRequest request)Authenticate method, parsing the requests and creating adequate responses.BufferDecryptergetDecrypter()Get the handler needed for signed hash verificationjava.lang.StringgetProtocol()java.lang.StringgetProtocolName()javax.security.auth.SubjectgetSubject()Get the subject containing the credentials/principals found during authentication.booleanisCompleted()Indicates if the authentication process completed successfully.
-
-
-
Method Detail
-
authenticate
XrootdResponse<AuthenticationRequest> authenticate(AuthenticationRequest request) throws XrootdException
Authenticate method, parsing the requests and creating adequate responses. The internal state of the handler might be changed by this method.- Parameters:
request- Request received from client- Returns:
- Response to be sent to the client
- Throws:
XrootdException
-
getProtocol
java.lang.String getProtocol()
- Returns:
- the full protocol string (xrootd) that is implemented by the authentication handler
-
getProtocolName
java.lang.String getProtocolName()
- Returns:
- the name of the protocol
-
getSubject
javax.security.auth.Subject getSubject()
Get the subject containing the credentials/principals found during authentication. The method MUST return null if no user has been authenticated yet. The method MAY return null even if the authentication step has completed - this indicates an anonymous user.
-
getDecrypter
BufferDecrypter getDecrypter()
Get the handler needed for signed hash verification
-
isCompleted
boolean isCompleted()
Indicates if the authentication process completed successfully.
-
-