0
某些人可以爲我提供一些幫助,如何在jetty服務器上運行的澤西休息web應用程序中使用MD5身份驗證。提前致謝!如何在jetty jersey rest web應用程序中使用MD5
某些人可以爲我提供一些幫助,如何在jetty服務器上運行的澤西休息web應用程序中使用MD5身份驗證。提前致謝!如何在jetty jersey rest web應用程序中使用MD5
如果你的意思是摘要式身份驗證您可以通過添加這樣的事情你web.xml
開始:
<security-constraint>
<web-resource-collection>
<web-resource-name>Secured Services</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>DIGEST</auth-method>
<realm-name>Web Services</realm-name>
</login-config>
<security-role>
<role-name>admin</role-name>
</security-role>
<security-role>
<role-name>user</role-name>
</security-role>