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 theAuthentication
interface 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 void
authenticate(Query<?> query)
Called to authenticate the query with the server.java.lang.String
getPassword()
java.lang.String
getUsername()
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
-
getPassword
public java.lang.String getPassword()
-
authenticate
public void authenticate(Query<?> query)
Description copied from interface:Authentication
Called to authenticate the query with the server.- Specified by:
authenticate
in interfaceAuthentication
- Parameters:
query
- The query needing authentication.
-
-