Package org.sblim.wbem.http
Class PegasusLocalAuthInfo
- java.lang.Object
-
- org.sblim.wbem.http.AuthInfo
-
- org.sblim.wbem.http.PegasusLocalAuthInfo
-
public class PegasusLocalAuthInfo extends AuthInfo
Implements OpenPegasus local authentication
-
-
Constructor Summary
Constructors Constructor Description PegasusLocalAuthInfo()
Default ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHeaderFieldName()
Gets the HTTP header field name for this authentication informationboolean
isKeptAlive()
Determines if the connection is kept alive after the "401 Unauthorized" responseboolean
isSentOnFirstRequest()
Determines if the authorization information is already sent on the very first http request or after the "401 Unauthorized" responsejava.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
-
-
-
-
Method Detail
-
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 classAuthInfo
- Parameters:
challenge
- The received challengeauthenticate
- The authenticate header fieldurl
- The url of the CIM serverrequestMethod
- 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 classAuthInfo
- 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 classAuthInfo
- Returns:
true
orfalse
-
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 classAuthInfo
- Returns:
true
orfalse
-
-