Class HttpAuthElement
- java.lang.Object
-
- org.jivesoftware.smackx.urldata.http.element.HttpAuthElement
-
- All Implemented Interfaces:
Element
,NamedElement
,MetaInformationElement
public final class HttpAuthElement extends Object implements MetaInformationElement
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_SCHEME
static String
ELEMENT
static String
PREFIX
static String
SCHEME_BASIC
-
Constructor Summary
Constructors Constructor Description HttpAuthElement(String scheme, List<AuthParamElement> params)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpAuthElement
basicAuth()
static HttpAuthElement
basicAuth(String username, String password)
static HttpAuthElement
basicAuth(String realm, String username, String password)
boolean
equals(Object obj)
String
getElementName()
Returns the root element name.AuthParamElement
getParam(String name)
List<AuthParamElement>
getParams()
String
getScheme()
int
hashCode()
XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
ATTR_SCHEME
public static final String ATTR_SCHEME
- See Also:
- Constant Field Values
-
SCHEME_BASIC
public static final String SCHEME_BASIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpAuthElement
public HttpAuthElement(String scheme, List<AuthParamElement> params)
-
-
Method Detail
-
basicAuth
public static HttpAuthElement basicAuth()
-
basicAuth
public static HttpAuthElement basicAuth(String username, String password)
-
basicAuth
public static HttpAuthElement basicAuth(String realm, String username, String password)
-
getParams
public List<AuthParamElement> getParams()
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getParam
public AuthParamElement getParam(String name)
-
-