Spring for Android

org.springframework.http
Class HttpBasicAuthentication

java.lang.Object
  extended by org.springframework.http.HttpAuthentication
      extended by org.springframework.http.HttpBasicAuthentication

public class HttpBasicAuthentication
extends HttpAuthentication

Represents HTTP Basic Authentication. Intended for use with ClientHttpRequest and RestTemplate.

Author:
Jonathan Sweemer, Roy Clarkson
See Also:
RFC2617

Constructor Summary
HttpBasicAuthentication(java.lang.String username, java.lang.String password)
           
 
Method Summary
 java.lang.String getHeaderValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpBasicAuthentication

public HttpBasicAuthentication(java.lang.String username,
                               java.lang.String password)
Method Detail

getHeaderValue

public java.lang.String getHeaderValue()
Specified by:
getHeaderValue in class HttpAuthentication
Returns:
the value for the 'Authorization' HTTP header.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Spring for Android