Apache CXF API

org.apache.cxf.transport.http.auth
Class HttpAuthHeader

java.lang.Object
  extended by org.apache.cxf.transport.http.auth.HttpAuthHeader

public final class HttpAuthHeader
extends Object


Field Summary
static String AUTH_TYPE_BASIC
           
static String AUTH_TYPE_DIGEST
           
static String AUTH_TYPE_NEGOTIATE
           
 
Constructor Summary
HttpAuthHeader(String fullHeader)
           
HttpAuthHeader(String authType, Map<String,String> params)
           
 
Method Summary
 boolean authTypeIsBasic()
           
 boolean authTypeIsDigest()
           
 boolean authTypeIsNegotiate()
           
 String getAuthType()
           
 String getFullContent()
           
 String getFullHeader()
           
 Map<String,String> getParams()
           
 String getRealm()
          Extracts the authorization realm from the "WWW-Authenticate" Http response header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_TYPE_BASIC

public static final String AUTH_TYPE_BASIC
See Also:
Constant Field Values

AUTH_TYPE_DIGEST

public static final String AUTH_TYPE_DIGEST
See Also:
Constant Field Values

AUTH_TYPE_NEGOTIATE

public static final String AUTH_TYPE_NEGOTIATE
See Also:
Constant Field Values
Constructor Detail

HttpAuthHeader

public HttpAuthHeader(String fullHeader)

HttpAuthHeader

public HttpAuthHeader(String authType,
                      Map<String,String> params)
Method Detail

getRealm

public String getRealm()
Extracts the authorization realm from the "WWW-Authenticate" Http response header.

Parameters:
authenticate - content of the WWW-Authenticate header
Returns:
The realm, or null if it is non-existent.

authTypeIsDigest

public boolean authTypeIsDigest()

authTypeIsBasic

public boolean authTypeIsBasic()

authTypeIsNegotiate

public boolean authTypeIsNegotiate()

getAuthType

public String getAuthType()

getFullContent

public String getFullContent()

getFullHeader

public String getFullHeader()

getParams

public Map<String,String> getParams()

Apache CXF API

Apache CXF