Package org.apache.pivot.web
Class BasicAuthentication
- java.lang.Object
-
- org.apache.pivot.web.BasicAuthentication
-
- All Implemented Interfaces:
Authentication
public class BasicAuthentication extends java.lang.Object implements Authentication
Implementation of theAuthenticationinterface supporting the HTTP Basic Authentication scheme.
-
-
Constructor Summary
Constructors Constructor Description BasicAuthentication(java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticate(Query<?> query)Called to authenticate the query with the server.java.lang.StringgetPassword()java.lang.StringgetUsername()
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
-
getPassword
public java.lang.String getPassword()
-
authenticate
public void authenticate(Query<?> query)
Description copied from interface:AuthenticationCalled to authenticate the query with the server.- Specified by:
authenticatein interfaceAuthentication- Parameters:
query- The query needing authentication.
-
-