modules.adoc 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. // FIXME: This might make sense in Getting Spring Security along with the artifact information
  2. [[modules]]
  3. = Project Modules and Dependencies
  4. In Spring Security 3.0, the codebase was sub-divided into separate jars which more clearly separate different functionality areas and third-party dependencies.
  5. If you use Maven to build your project, these are the modules you should add to your `pom.xml`.
  6. Even if you do not use Maven, we recommend that you consult the `pom.xml` files to get an idea of third-party dependencies and versions.
  7. Another good idea is to examine the libraries that are included in the sample applications.
  8. This section provides a reference of the modules in Spring Security and the additional dependencies that they require in order to function in a running application.
  9. We don't include dependencies that are only used when building or testing Spring Security itself.
  10. Nor do we include transitive dependencies which are required by external dependencies.
  11. The version of Spring required is listed on the project website, so the specific versions are omitted for Spring dependencies below.
  12. Note that some of the dependencies listed as "optional" below may still be required for other non-security functionality in a Spring application.
  13. Also dependencies listed as "optional" may not actually be marked as such in the project's Maven POM files if they are used in most applications.
  14. They are "optional" only in the sense that you don't need them unless you are using the specified functionality.
  15. Where a module depends on another Spring Security module, the non-optional dependencies of the module it depends on are also assumed to be required and are not listed separately.
  16. [[spring-security-core]]
  17. == Core -- `spring-security-core.jar`
  18. This module contains core authentication and access-contol classes and interfaces, and basic provisioning APIs.
  19. It is required by any application that uses Spring Security.
  20. It supports standalone applications, remote clients, method (service layer) security, and JDBC user provisioning.
  21. It contains the following top-level packages:
  22. * `org.springframework.security.core`
  23. * `org.springframework.security.access`
  24. * `org.springframework.security.authentication`
  25. * `org.springframework.security.provisioning`
  26. .Core Dependencies
  27. |===
  28. | Dependency | Version | Description
  29. | ehcache
  30. | 1.6.2
  31. | Required if the Ehcache-based user cache implementation is used (optional).
  32. | spring-aop
  33. |
  34. | Method security is based on Spring AOP
  35. | spring-beans
  36. |
  37. | Required for Spring configuration
  38. | spring-expression
  39. |
  40. | Required for expression-based method security (optional)
  41. | spring-jdbc
  42. |
  43. | Required if using a database to store user data (optional).
  44. | spring-tx
  45. |
  46. | Required if using a database to store user data (optional).
  47. | aspectjrt
  48. | 1.6.10
  49. | Required if using AspectJ support (optional).
  50. | jsr250-api
  51. | 1.0
  52. | Required if you are using JSR-250 method-security annotations (optional).
  53. |===
  54. [[spring-security-web]]
  55. == Web -- `spring-security-web.jar`
  56. This module contains filters and related web-security infrastructure code.
  57. It contains anything with a servlet API dependency.
  58. You need it if you require Spring Security web authentication services and URL-based access-control.
  59. The main package is `org.springframework.security.web`.
  60. .Web Dependencies
  61. |===
  62. | Dependency | Version | Description
  63. | spring-security-core
  64. |
  65. |
  66. | spring-web
  67. |
  68. | Spring web support classes are used extensively.
  69. | spring-jdbc
  70. |
  71. | Required for JDBC-based persistent remember-me token repository (optional).
  72. | spring-tx
  73. |
  74. | Required by remember-me persistent token repository implementations (optional).
  75. |===
  76. [[spring-security-config]]
  77. == Config -- `spring-security-config.jar`
  78. This module contains the security namespace parsing code and Java configuration code.
  79. You need it if you use the Spring Security XML namespace for configuration or Spring Security's Java Configuration support.
  80. The main package is `org.springframework.security.config`.
  81. None of the classes are intended for direct use in an application.
  82. .Config Dependencies
  83. |===
  84. | Dependency | Version | Description
  85. | spring-security-core
  86. |
  87. |
  88. | spring-security-web
  89. |
  90. | Required if you are using any web-related namespace configuration (optional).
  91. | spring-security-ldap
  92. |
  93. | Required if you are using the LDAP namespace options (optional).
  94. | spring-security-openid
  95. |
  96. | Required if you are using OpenID authentication (optional).
  97. | aspectjweaver
  98. | 1.6.10
  99. | Required if using the protect-pointcut namespace syntax (optional).
  100. |===
  101. [[spring-security-ldap]]
  102. == LDAP -- `spring-security-ldap.jar`
  103. This module provides LDAP authentication and provisioning code.
  104. It is required if you need to use LDAP authentication or manage LDAP user entries.
  105. The top-level package is `org.springframework.security.ldap`.
  106. .LDAP Dependencies
  107. |===
  108. | Dependency | Version | Description
  109. | spring-security-core
  110. |
  111. |
  112. | spring-ldap-core
  113. | 1.3.0
  114. | LDAP support is based on Spring LDAP.
  115. | spring-tx
  116. |
  117. | Data exception classes are required.
  118. | apache-ds footnote:[The modules `apacheds-core`, `apacheds-core-entry`, `apacheds-protocol-shared`, `apacheds-protocol-ldap` and `apacheds-server-jndi` are required.
  119. ]
  120. | 1.5.5
  121. | Required if you are using an embedded LDAP server (optional).
  122. | shared-ldap
  123. | 0.9.15
  124. | Required if you are using an embedded LDAP server (optional).
  125. | ldapsdk
  126. | 4.1
  127. | Mozilla LdapSDK.
  128. Used for decoding LDAP password policy controls if you are using password-policy functionality with OpenLDAP, for example.
  129. |===
  130. [[spring-security-oauth2-core]]
  131. == OAuth 2.0 Core -- `spring-security-oauth2-core.jar`
  132. `spring-security-oauth2-core.jar` contains core classes and interfaces that provide support for the OAuth 2.0 Authorization Framework and for OpenID Connect Core 1.0.
  133. It is required by applications that use OAuth 2.0 or OpenID Connect Core 1.0, such as client, resource server, and authorization server.
  134. The top-level package is `org.springframework.security.oauth2.core`.
  135. [[spring-security-oauth2-client]]
  136. == OAuth 2.0 Client -- `spring-security-oauth2-client.jar`
  137. `spring-security-oauth2-client.jar` contains Spring Security's client support for OAuth 2.0 Authorization Framework and OpenID Connect Core 1.0.
  138. It is required by applications that use OAuth 2.0 Login or OAuth Client support.
  139. The top-level package is `org.springframework.security.oauth2.client`.
  140. [[spring-security-oauth2-jose]]
  141. == OAuth 2.0 JOSE -- `spring-security-oauth2-jose.jar`
  142. `spring-security-oauth2-jose.jar` contains Spring Security's support for the JOSE (Javascript Object Signing and Encryption) framework.
  143. The JOSE framework is intended to provide a method to securely transfer claims between parties.
  144. It is built from a collection of specifications:
  145. * JSON Web Token (JWT)
  146. * JSON Web Signature (JWS)
  147. * JSON Web Encryption (JWE)
  148. * JSON Web Key (JWK)
  149. It contains the following top-level packages:
  150. * `org.springframework.security.oauth2.jwt`
  151. * `org.springframework.security.oauth2.jose`
  152. [[spring-security-oauth2-resource-server]]
  153. == OAuth 2.0 Resource Server -- `spring-security-oauth2-resource-server.jar`
  154. `spring-security-oauth2-resource-server.jar` contains Spring Security's support for OAuth 2.0 Resource Servers.
  155. It is used to protect APIs via OAuth 2.0 Bearer Tokens.
  156. The top-level package is `org.springframework.security.oauth2.server.resource`.
  157. [[spring-security-acl]]
  158. == ACL -- `spring-security-acl.jar`
  159. This module contains a specialized domain object ACL implementation.
  160. It is used to apply security to specific domain object instances within your application.
  161. The top-level package is `org.springframework.security.acls`.
  162. .ACL Dependencies
  163. |===
  164. | Dependency | Version | Description
  165. | spring-security-core
  166. |
  167. |
  168. | ehcache
  169. | 1.6.2
  170. | Required if the Ehcache-based ACL cache implementation is used (optional if you are using your own implementation).
  171. | spring-jdbc
  172. |
  173. | Required if you are using the default JDBC-based AclService (optional if you implement your own).
  174. | spring-tx
  175. |
  176. | Required if you are using the default JDBC-based AclService (optional if you implement your own).
  177. |===
  178. [[spring-security-cas]]
  179. == CAS -- `spring-security-cas.jar`
  180. This module contains Spring Security's CAS client integration.
  181. You should use it if you want to use Spring Security web authentication with a CAS single sign-on server.
  182. The top-level package is `org.springframework.security.cas`.
  183. .CAS Dependencies
  184. |===
  185. | Dependency | Version | Description
  186. | spring-security-core
  187. |
  188. |
  189. | spring-security-web
  190. |
  191. |
  192. | cas-client-core
  193. | 3.1.12
  194. | The JA-SIG CAS Client.
  195. This is the basis of the Spring Security integration.
  196. | ehcache
  197. | 1.6.2
  198. | Required if you are using the Ehcache-based ticket cache (optional).
  199. |===
  200. [[spring-security-openid]]
  201. == OpenID -- `spring-security-openid.jar`
  202. [NOTE]
  203. The OpenID 1.0 and 2.0 protocols have been deprecated and users are encouraged to migrate to OpenID Connect, which is supported by spring-security-oauth2.
  204. This module contains OpenID web authentication support.
  205. It is used to authenticate users against an external OpenID server.
  206. The top-level package is `org.springframework.security.openid`.
  207. It requires OpenID4Java.
  208. .OpenID Dependencies
  209. |===
  210. | Dependency | Version | Description
  211. | spring-security-core
  212. |
  213. |
  214. | spring-security-web
  215. |
  216. |
  217. | openid4java-nodeps
  218. | 0.9.6
  219. | Spring Security's OpenID integration uses OpenID4Java.
  220. | httpclient
  221. | 4.1.1
  222. | openid4java-nodeps depends on HttpClient 4.
  223. | guice
  224. | 2.0
  225. | openid4java-nodeps depends on Guice 2.
  226. |===
  227. [[spring-security-test]]
  228. == Test -- `spring-security-test.jar`
  229. This module contains support for testing with Spring Security.
  230. [[spring-security-taglibs]]
  231. == Taglibs -- `spring-secuity-taglibs.jar`
  232. Provides Spring Security's JSP tag implementations.
  233. .Taglib Dependencies
  234. |===
  235. | Dependency | Version | Description
  236. | spring-security-core
  237. |
  238. |
  239. | spring-security-web
  240. |
  241. |
  242. | spring-security-acl
  243. |
  244. | Required if you are using the `accesscontrollist` tag or `hasPermission()` expressions with ACLs (optional).
  245. | spring-expression
  246. |
  247. | Required if you are using SPEL expressions in your tag access constraints.
  248. |===