Class PegasusLocalAuthInfo
java.lang.Object
org.sblim.wbem.http.AuthInfo
org.sblim.wbem.http.PegasusLocalAuthInfo
Implements OpenPegasus local authentication
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the HTTP header field name for this authentication informationbooleanDetermines if the connection is kept alive after the "401 Unauthorized" responsebooleanDetermines if the authorization information is already sent on the very first http request or after the "401 Unauthorized" responsetoString()voidupdateAuthenticationInfo(Challenge challenge, String authenticate, URI url, String requestMethod) Updates the authorization information acording to a received challenge.Methods inherited from class 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
-
Constructor Details
-
PegasusLocalAuthInfo
public PegasusLocalAuthInfo()Default ctor.
-
-
Method Details
-
updateAuthenticationInfo
public void updateAuthenticationInfo(Challenge challenge, String authenticate, URI url, String requestMethod) throws NoSuchAlgorithmException Description copied from class:AuthInfoUpdates the authorization information acording to a received challenge.- Specified by:
updateAuthenticationInfoin classAuthInfo- Parameters:
challenge- The received challengeauthenticate- The authenticate header fieldurl- The url of the CIM serverrequestMethod- The HTTP request method (POST or MPOST)- Throws:
NoSuchAlgorithmException
-
toString
-
getHeaderFieldName
Description copied from class:AuthInfoGets the HTTP header field name for this authentication information- Specified by:
getHeaderFieldNamein classAuthInfo- Returns:
- The field name
-
isSentOnFirstRequest
public boolean isSentOnFirstRequest()Description copied from class:AuthInfoDetermines if the authorization information is already sent on the very first http request or after the "401 Unauthorized" response- Specified by:
isSentOnFirstRequestin classAuthInfo- Returns:
trueorfalse
-
isKeptAlive
public boolean isKeptAlive()Description copied from class:AuthInfoDetermines if the connection is kept alive after the "401 Unauthorized" response- Specified by:
isKeptAlivein classAuthInfo- Returns:
trueorfalse
-