public class WwwAuthInfo extends AuthorizationInfo
Constructor and Description |
---|
WwwAuthInfo()
Default ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
getHeaderFieldName()
Gets the HTTP header field name for this authentication information
|
boolean |
isKeptAlive()
Determines if the connection is kept alive after the "401 Unauthorized"
response
|
boolean |
isSentOnFirstRequest()
Determines if the authorization information is already sent on the very
first http request or after the "401 Unauthorized" response
|
static String[] |
split(String pLine)
Splits a comma-separated string into multiple substrings
|
String |
toString() |
void |
updateAuthenticationInfo(Challenge challenge,
String authenticate,
URI url,
String requestMethod)
Updates the authorization information according to a received challenge.
|
createAuthorizationInfo, createAuthorizationInfo, getA1, getAddr, getAlgorithm, getCnonce, getCredentials, getNc, getNonce, getOpaque, getPort, getProtocol, getQop, getRealm, getResponse, getScheme, getURI, init, match, setA1, setAlgorithm, setCnonce, setCredentials, setNc, setNonce, setOpaque, setQop, setRealm, setResponse, setScheme, setURI
public String toString()
toString
in class AuthorizationInfo
public static String[] split(String pLine)
pLine
- The comma-separated stringpublic void updateAuthenticationInfo(Challenge challenge, String authenticate, URI url, String requestMethod) throws NoSuchAlgorithmException
AuthorizationInfo
updateAuthenticationInfo
in class AuthorizationInfo
authenticate
- challenge
- The received challengeurl
- The url of the CIM serverrequestMethod
- The HTTP request method (POST or MPOST)NoSuchAlgorithmException
public String getHeaderFieldName()
AuthorizationInfo
getHeaderFieldName
in class AuthorizationInfo
public boolean isSentOnFirstRequest()
AuthorizationInfo
isSentOnFirstRequest
in class AuthorizationInfo
true
or false
public boolean isKeptAlive()
AuthorizationInfo
isKeptAlive
in class AuthorizationInfo
true
or false
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.