类 DigestServerAuthenticationHelper
java.lang.Object
cn.skcks.docking.gb28181.core.sip.message.auth.DigestServerAuthenticationHelper
Implements the HTTP digest authentication method server side functionality.
- 作者:
- M. Ranganathan, Marc Bednarek
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleandoAuthenticateHashedPassword(javax.sip.message.Request request, String hashedPassword) Authenticate the inbound request.static booleandoAuthenticatePlainTextPassword(javax.sip.message.Request request, String pass) Authenticate the inbound request given plain text password.static voidgenerateChallenge(javax.sip.header.HeaderFactory headerFactory, javax.sip.message.Response response, String realm) static StringtoHexString(byte[] b)
-
字段详细资料
-
构造器详细资料
-
DigestServerAuthenticationHelper
public DigestServerAuthenticationHelper()
-
-
方法详细资料
-
toHexString
-
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.
-