-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Bernardo-MG/merge_master
Merge master
- Loading branch information
Showing
45 changed files
with
893 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | ||
|
||
<description> | ||
Context for the unsecured client. This is the most basic | ||
client possible. | ||
</description> | ||
<description> | ||
Context for the unsecured client. This is the most basic | ||
client possible. | ||
</description> | ||
|
||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties" /> | ||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties" /> | ||
|
||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
|
||
<!-- Client --> | ||
<bean id="unsecureClient" class="${client.class}" scope="prototype"> | ||
<property name="marshaller" ref="marshaller" /> | ||
<property name="unmarshaller" ref="marshaller" /> | ||
<property name="interceptors"> | ||
<list> | ||
<ref bean="payloadValidatingInterceptor" /> | ||
</list> | ||
</property> | ||
</bean> | ||
<!-- Client --> | ||
<bean id="unsecureClient" class="${client.class}" scope="prototype"> | ||
<property name="marshaller" ref="marshaller" /> | ||
<property name="unmarshaller" ref="marshaller" /> | ||
<property name="interceptors"> | ||
<list> | ||
<ref bean="payloadValidatingInterceptor" /> | ||
</list> | ||
</property> | ||
</bean> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | ||
|
||
<description> | ||
Base context for the web service clients. | ||
<description> | ||
Base context for the web service clients. | ||
|
||
This is to be extended for each client, which should define the security | ||
interceptor to use. | ||
</description> | ||
This is to be extended for each client, which should define the security | ||
interceptor to use. | ||
</description> | ||
|
||
<!-- Client --> | ||
<bean id="baseClient" class="${client.class}" scope="prototype" abstract="true"> | ||
<property name="marshaller" ref="marshaller" /> | ||
<property name="unmarshaller" ref="marshaller" /> | ||
<property name="interceptors"> | ||
<list> | ||
<ref bean="payloadValidatingInterceptor" /> | ||
<ref bean="securityInterceptor" /> | ||
</list> | ||
</property> | ||
</bean> | ||
<!-- Client --> | ||
<bean id="baseClient" class="${client.class}" scope="prototype" | ||
abstract="true"> | ||
<property name="marshaller" ref="marshaller" /> | ||
<property name="unmarshaller" ref="marshaller" /> | ||
<property name="interceptors"> | ||
<list> | ||
<ref bean="payloadValidatingInterceptor" /> | ||
<ref bean="securityInterceptor" /> | ||
</list> | ||
</property> | ||
</bean> | ||
|
||
<!-- Marshaller --> | ||
<bean id="marshaller" class="${marshaller.class}"> | ||
<property name="packagesToScan" value="${marshaller.packagesToScan}" /> | ||
</bean> | ||
<!-- Marshaller --> | ||
<bean id="marshaller" class="${marshaller.class}"> | ||
<property name="packagesToScan" value="${marshaller.packagesToScan}" /> | ||
</bean> | ||
|
||
<!-- Payload validator interceptor --> | ||
<bean id="payloadValidatingInterceptor" class="${interceptor.payloadValidator.class}"> | ||
<property name="schema" value="${schema.path}" /> | ||
<property name="validateRequest" | ||
value="${interceptor.payloadValidator.validateRequest}" /> | ||
<property name="validateResponse" | ||
value="${interceptor.payloadValidator.validateResponse}" /> | ||
</bean> | ||
<!-- Payload validator interceptor --> | ||
<bean id="payloadValidatingInterceptor" class="${interceptor.payloadValidator.class}"> | ||
<property name="schema" value="${schema.path}" /> | ||
<property name="validateRequest" | ||
value="${interceptor.payloadValidator.validateRequest}" /> | ||
<property name="validateResponse" | ||
value="${interceptor.payloadValidator.validateResponse}" /> | ||
</bean> | ||
|
||
</beans> |
37 changes: 19 additions & 18 deletions
37
src/main/resources/context/client/encryption/wss4j/client-encryption-wss4j.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
|
||
<description> | ||
Context for the WSS4J encrypted client. | ||
<description> | ||
Context for the WSS4J encrypted client. | ||
|
||
A normal key store and a WSS4J one are required for this to work, such as the | ||
ones provided by the key stores context files. | ||
</description> | ||
A normal key store and a WSS4J one are required for this to work, such | ||
as the ones provided by the key stores context files. | ||
</description> | ||
|
||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, config/keystore/keystore.properties, classpath:config/interceptor/encryption/wss4j/interceptor-encryption-wss4j.properties, classpath:config/keystore/keystore-wss4j.properties" /> | ||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, config/keystore/keystore.properties, classpath:config/interceptor/encryption/wss4j/interceptor-encryption-wss4j.properties, classpath:config/keystore/keystore-wss4j.properties" /> | ||
|
||
<!-- Imports base context --> | ||
<import resource="classpath:context/keystore/keystore.xml" /> | ||
<import resource="classpath:context/keystore/keystore-wss4j.xml" /> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import resource="classpath:context/interceptor/encryption/wss4j/interceptor-encryption-wss4j.xml" /> | ||
<!-- Imports base context --> | ||
<import resource="classpath:context/keystore/keystore.xml" /> | ||
<import resource="classpath:context/keystore/keystore-wss4j.xml" /> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import | ||
resource="classpath:context/interceptor/encryption/wss4j/interceptor-encryption-wss4j.xml" /> | ||
|
||
<!-- Extends client --> | ||
<bean id="encryptionWss4jClient" parent="baseClient" /> | ||
<!-- Extends client --> | ||
<bean id="encryptionWss4jClient" parent="baseClient" /> | ||
|
||
</beans> |
35 changes: 18 additions & 17 deletions
35
src/main/resources/context/client/encryption/xwss/client-encryption-xwss.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
|
||
<description> | ||
Context for the XWSS encrypted client. | ||
<description> | ||
Context for the XWSS encrypted client. | ||
|
||
A key store is required for this to work, such as the ones provided by the key | ||
stores context file. | ||
</description> | ||
A key store is required for this to work, such as the ones provided by | ||
the key stores context file. | ||
</description> | ||
|
||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, config/keystore/keystore.properties, classpath:config/interceptor/encryption/xwss/interceptor-encryption-xwss.properties, classpath:config/client/encryption/xwss/client-encryption-xwss.properties" /> | ||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, config/keystore/keystore.properties, classpath:config/interceptor/encryption/xwss/interceptor-encryption-xwss.properties, classpath:config/client/encryption/xwss/client-encryption-xwss.properties" /> | ||
|
||
<!-- Imports base context --> | ||
<import resource="classpath:context/keystore/keystore.xml" /> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import resource="classpath:context/interceptor/encryption/xwss/interceptor-encryption-xwss.xml" /> | ||
<!-- Imports base context --> | ||
<import resource="classpath:context/keystore/keystore.xml" /> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import | ||
resource="classpath:context/interceptor/encryption/xwss/interceptor-encryption-xwss.xml" /> | ||
|
||
<!-- Extends client --> | ||
<bean id="encryptionXwssClient" parent="baseClient" /> | ||
<!-- Extends client --> | ||
<bean id="encryptionXwssClient" parent="baseClient" /> | ||
|
||
</beans> |
29 changes: 15 additions & 14 deletions
29
src/main/resources/context/client/password/digest/wss4j/client-password-digest-wss4j.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
|
||
<description> | ||
Context for the WSS4J digested password secured client. | ||
</description> | ||
<description> | ||
Context for the WSS4J digested password secured client. | ||
</description> | ||
|
||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, classpath:config/interceptor/password/digest/wss4j/interceptor-password-digest-wss4j.properties" /> | ||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, classpath:config/interceptor/password/digest/wss4j/interceptor-password-digest-wss4j.properties" /> | ||
|
||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import resource="classpath:context/interceptor/password/digest/wss4j/interceptor-password-digest-wss4j.xml" /> | ||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import | ||
resource="classpath:context/interceptor/password/digest/wss4j/interceptor-password-digest-wss4j.xml" /> | ||
|
||
<!-- Extends client --> | ||
<bean id="passDigestWss4jClient" parent="baseClient" /> | ||
<!-- Extends client --> | ||
<bean id="passDigestWss4jClient" parent="baseClient" /> | ||
|
||
</beans> |
29 changes: 15 additions & 14 deletions
29
src/main/resources/context/client/password/digest/xwss/client-password-digest-xwss.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans | ||
http://www.springframework.org/schema/beans/spring-beans.xsd | ||
http://www.springframework.org/schema/context | ||
http://www.springframework.org/schema/context/spring-context.xsd"> | ||
|
||
<description> | ||
Context for the XWSS digested password protected client. | ||
</description> | ||
<description> | ||
Context for the XWSS digested password protected client. | ||
</description> | ||
|
||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, classpath:config/interceptor/password/digest/xwss/interceptor-password-digest-xwss.properties, classpath:config/client/password/digest/xwss/client-password-digest-xwss.properties" /> | ||
<!-- Properties --> | ||
<context:property-placeholder | ||
location="classpath:config/client/client.properties, classpath:config/interceptor/password/digest/xwss/interceptor-password-digest-xwss.properties, classpath:config/client/password/digest/xwss/client-password-digest-xwss.properties" /> | ||
|
||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import resource="classpath:context/interceptor/password/digest/xwss/interceptor-password-digest-xwss.xml" /> | ||
<!-- Imports base context --> | ||
<import resource="classpath:context/client/client.xml" /> | ||
<import | ||
resource="classpath:context/interceptor/password/digest/xwss/interceptor-password-digest-xwss.xml" /> | ||
|
||
<!-- Extends client --> | ||
<bean id="passDigestXwssClient" parent="baseClient" /> | ||
<!-- Extends client --> | ||
<bean id="passDigestXwssClient" parent="baseClient" /> | ||
|
||
</beans> |
Oops, something went wrong.