i am new to spring security. can anybody provide me sample application for x509 certificate authentication with spring 2.0.4
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use the basic <http>
setup to get X509 authentication:
<http>
<x509: subject-principal-regex"(.*)" user-service-ref="myUserService"/>
<intercept-url pattern="/**" access="ROLE_USER" requires-channel="https"/>
</http>