1. 程式人生 > >Spring Security(八):2.4.3 Project Modules

Spring Security(八):2.4.3 Project Modules

In Spring Security 3.0, the codebase has been sub-divided into separate jars which more clearly separate different functionality areas and third-party dependencies. If you are using Maven to build your project, then these are the modules you will add to your pom.xml. Even if you’re not using Maven, we’d recommend that you consult the pom.xml

 files to get an idea of third-party dependencies and versions. Alternatively, a good idea is to examine the libraries that are included in the sample applications.

在Spring Security 3.0中,程式碼庫已被細分為單獨的jar,這些jar更清楚地分隔了不同的功能區域和第三方依賴項。如果您使用Maven構建專案,那麼這些是您將新增到pom.xml的模組。即使您沒有使用Maven,我們也建議您查閱pom.xml檔案以瞭解第三方依賴項和版本。或者,一個好主意是檢查示例應用程式中包含的庫。  

Core - spring-security-core.jar

Contains core authentication and access-contol classes and interfaces, remoting support and basic provisioning APIs. Required by any application which uses Spring Security. Supports standalone applications, remote clients, method (service layer) security and JDBC user provisioning. Contains the top-level packages:

包含核心身份驗證和access-contol類和介面,遠端支援和基本配置API。任何使用Spring Security的應用程式都需要。支援獨立應用程式,遠端客戶端,方法(服務層)安全性和JDBC使用者配置。包含頂級包:  
  • org.springframework.security.core
  • org.springframework.security.access
  • org.springframework.security.authentication
  • org.springframework.security.provisioning

Remoting - spring-security-remoting.jar  (遠端處理)

Provides intergration with Spring Remoting. You don’t need this unless you are writing a remote client which uses Spring Remoting. The main package is org.springframework.security.remoting.

提供與Spring Remoting的整合。除非您正在編寫使用Spring Remoting的遠端客戶端,否則您不需要這樣做。主要包是org.springframework.security.remoting。  

Config - spring-security-config.jar

Contains the security namespace parsing code & Java configuration code. You need it if you are using the Spring Security XML namespace for configuration or Spring Security’s Java Configuration support. The main package is org.springframework.security.config. None of the classes are intended for direct use in an application.

包含安全名稱空間解析程式碼和Java配置程式碼。如果您使用Spring Security XML名稱空間進行配置或Spring Security的Java配置支援,則需要它。主要包是org.springframework.security.config。這些類都不打算直接用於應用程式。  

LDAP - spring-security-ldap.jar

LDAP authentication and provisioning code. Required if you need to use LDAP authentication or manage LDAP user entries. The top-level package is org.springframework.security.ldap.

LDAP身份驗證和配置程式碼。如果需要使用LDAP身份驗證或管理LDAP使用者條目,則為必需。頂級包是org.springframework.security.ldap。  

ACL - spring-security-acl.jar

Specialized domain object ACL implementation. Used to apply security to specific domain object instances within your application. The top-level package is org.springframework.security.acls.

專門的域物件ACL實現。用於將安全性應用於應用程式中的特定域物件例項。頂級包是org.springframework.security.acls。  

CAS - spring-security-cas.jar

Spring Security’s CAS client integration. If you want to use Spring Security web authentication with a CAS single sign-on server. The top-level package is org.springframework.security.cas.

Spring Security的CAS客戶端整合。如果要將CAS安全Web身份驗證與CAS單一登入伺服器一起使用。頂級包是org.springframework.security.cas。  

OpenID - spring-security-openid.jar

OpenID web authentication support. Used to authenticate users against an external OpenID server. org.springframework.security.openid. Requires OpenID4Java.

OpenID Web身份驗證支援。用於針對外部OpenID伺服器對使用者進行身份驗證。 org.springframework.security.openid。需要OpenID4Java。  

Test - spring-security-test.jar

Support for testing with Spring Security.

支援使用Spring Security進行測試。