|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.http.AuthorizationInfo
org.sblim.cimclient.internal.http.WwwAuthInfo
public class WwwAuthInfo
Implements HTTP basic and digest authentication
Field Summary |
---|
Fields inherited from class org.sblim.cimclient.internal.http.AuthorizationInfo |
---|
iA1, iAddr, iAlgorithm, iCnonce, iCredentials, iNc, iNonce, iOpaque, iPort, iProtocol, iQop, iRealm, iResponse, iScheme, iUri |
Constructor Summary | |
---|---|
WwwAuthInfo()
Default ctor. |
Method Summary | |
---|---|
java.lang.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 java.lang.String[] |
split(java.lang.String pLine)
Splits a comma-seperated string into multiple substrings |
java.lang.String |
toString()
|
void |
updateAuthenticationInfo(Challenge challenge,
java.lang.String authenticate,
java.net.URI url,
java.lang.String requestMethod)
Updates the authorization information acording to a received challenge. |
Methods inherited from class org.sblim.cimclient.internal.http.AuthorizationInfo |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WwwAuthInfo()
Method Detail |
---|
public java.lang.String toString()
toString
in class AuthorizationInfo
public static java.lang.String[] split(java.lang.String pLine)
pLine
- The comma-seperated string
public void updateAuthenticationInfo(Challenge challenge, java.lang.String authenticate, java.net.URI url, java.lang.String requestMethod) throws java.security.NoSuchAlgorithmException
AuthorizationInfo
updateAuthenticationInfo
in class AuthorizationInfo
challenge
- The received challengeauthenticate
- The authenticate header fieldurl
- The url of the CIM serverrequestMethod
- The HTTP request method (POST or MPOST)
java.security.NoSuchAlgorithmException
public java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |