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 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: 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:
      NoSuchAlgorithmException
    • toString

      public String toString()
      Specified by:
      toString in class AuthInfo
    • getHeaderFieldName

      public 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