类 DigestServerAuthenticationHelper

java.lang.Object
cn.skcks.docking.gb28181.core.sip.message.auth.DigestServerAuthenticationHelper

public class DigestServerAuthenticationHelper extends Object
Implements the HTTP digest authentication method server side functionality.
作者:
M. Ranganathan, Marc Bednarek
  • 字段详细资料

  • 构造器详细资料

    • DigestServerAuthenticationHelper

      public DigestServerAuthenticationHelper()
  • 方法详细资料

    • toHexString

      public static String toHexString(byte[] b)
    • generateChallenge

      public static void generateChallenge(javax.sip.header.HeaderFactory headerFactory, javax.sip.message.Response response, String realm)
    • doAuthenticateHashedPassword

      public static boolean doAuthenticateHashedPassword(javax.sip.message.Request request, String hashedPassword)
      Authenticate the inbound request.
      参数:
      request - - the request to authenticate.
      hashedPassword - -- the MD5 hashed string of username:realm:plaintext password.
      返回:
      true if authentication succeded and false otherwise.
    • doAuthenticatePlainTextPassword

      public static boolean doAuthenticatePlainTextPassword(javax.sip.message.Request request, String pass)
      Authenticate the inbound request given plain text password.
      参数:
      request - - the request to authenticate.
      pass - -- the plain text password.
      返回:
      true if authentication succeded and false otherwise.