org.apache.pivot.web
Class BasicAuthentication

java.lang.Object
  extended by org.apache.pivot.web.BasicAuthentication
All Implemented Interfaces:
Authentication

public class BasicAuthentication
extends Object
implements Authentication

Implementation of the Authentication interface supporting the HTTP Basic Authentication scheme.


Constructor Summary
BasicAuthentication(String username, String password)
           
 
Method Summary
 void authenticate(Query<?> query)
           
 String getPassword()
           
 String getUsername()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthentication

public BasicAuthentication(String username,
                           String password)
Method Detail

getUsername

public String getUsername()

getPassword

public String getPassword()

authenticate

public void authenticate(Query<?> query)
Specified by:
authenticate in interface Authentication