org.sblim.wbem.http
Class WwwAuthInfo

java.lang.Object
  extended byorg.sblim.wbem.http.AuthInfo
      extended byorg.sblim.wbem.http.WwwAuthInfo

public class WwwAuthInfo
extends AuthInfo

Implements HTTP basic and digest authentication


Field Summary
 
Fields inherited from class org.sblim.wbem.http.AuthInfo
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 line)
           
 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.wbem.http.AuthInfo
createAuthorizationInfo, createAuthorizationInfo, getA1, getAddr, getAlgorith, 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

WwwAuthInfo

public WwwAuthInfo()
Default ctor.

Method Detail

toString

public java.lang.String toString()
Specified by:
toString in class AuthInfo

split

public static java.lang.String[] split(java.lang.String line)

updateAuthenticationInfo

public void updateAuthenticationInfo(Challenge challenge,
                                     java.lang.String authenticate,
                                     java.net.URI url,
                                     java.lang.String requestMethod)
                              throws java.security.NoSuchAlgorithmException
Description copied from class: AuthInfo
Updates the authorization information acording to a received challenge.

Specified by:
updateAuthenticationInfo in class AuthInfo
Parameters:
challenge - The received challenge
authenticate - The authenticate header field
url - The url of the CIM server
requestMethod - The HTTP request method (POST or MPOST)
Throws:
java.security.NoSuchAlgorithmException

getHeaderFieldName

public java.lang.String getHeaderFieldName()
Description copied from class: AuthInfo
Gets the HTTP header field name for this authentication information

Specified by:
getHeaderFieldName in class AuthInfo
Returns:
The field name

isSentOnFirstRequest

public boolean isSentOnFirstRequest()
Description copied from class: AuthInfo
Determines if the authorization information is already sent on the very first http request or after the "401 Unauthorized" response

Specified by:
isSentOnFirstRequest in class AuthInfo
Returns:
true or false

isKeptAlive

public boolean isKeptAlive()
Description copied from class: AuthInfo
Determines if the connection is kept alive after the "401 Unauthorized" response

Specified by:
isKeptAlive in class AuthInfo
Returns:
true or false


Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.