Class NoAuthenticationHandler
- java.lang.Object
-
- org.dcache.xrootd.plugins.authn.none.NoAuthenticationHandler
-
- All Implemented Interfaces:
AuthenticationHandler
public class NoAuthenticationHandler extends java.lang.Object implements AuthenticationHandler
Dummy authentication handler that accepts all authentication requests in authenticate.
-
-
Constructor Summary
Constructors Constructor Description NoAuthenticationHandler()
-
Method Summary
All Methods Instance Methods Concrete 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
public XrootdResponse<AuthenticationRequest> authenticate(AuthenticationRequest request)
Description copied from interface:AuthenticationHandlerAuthenticate method, parsing the requests and creating adequate responses. The internal state of the handler might be changed by this method.- Specified by:
authenticatein interfaceAuthenticationHandler- Parameters:
request- Request received from client- Returns:
- Response to be sent to the client
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocolin interfaceAuthenticationHandler- Returns:
- the full protocol string (xrootd) that is implemented by the authentication handler
-
getProtocolName
public java.lang.String getProtocolName()
- Specified by:
getProtocolNamein interfaceAuthenticationHandler- Returns:
- the name of the protocol
-
getSubject
public javax.security.auth.Subject getSubject()
Description copied from interface:AuthenticationHandlerGet 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.- Specified by:
getSubjectin interfaceAuthenticationHandler
-
getDecrypter
public BufferDecrypter getDecrypter()
Description copied from interface:AuthenticationHandlerGet the handler needed for signed hash verification- Specified by:
getDecrypterin interfaceAuthenticationHandler
-
isCompleted
public boolean isCompleted()
Description copied from interface:AuthenticationHandlerIndicates if the authentication process completed successfully.- Specified by:
isCompletedin interfaceAuthenticationHandler
-
-