Commit 0829d37a authored by frederic motte's avatar frederic motte
Browse files

add release note and test models

parent 62170419
<?xml version="1.0" encoding="UTF-8"?>
<security:SecurityModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:security="http://www.thalesgroup.com/chorevolution/spec/security">
<securitypolicyset name="SecurityPolicy" ressourceURL="http://www.test.com" domainName="domain1" serviceName="service1">
<authorisation name="GET authZ" Action="get">
<accessrule name="rulebag1">
<unitaryrule name="accessRule1"/>
</accessrule>
<accessrule name="rulebag2">
<unitaryrule AttributeValue="mpoi" AttributeDesignator="name" MatchFunction="string_equal_ignore_case" name="accessRule2"/>
<unitaryrule name="accessRule3"/>
</accessrule>
</authorisation>
<authentication name="authentication"/>
<communication name="communication" MutualCommunication="false" SecuredCommunication="true"/>
</securitypolicyset>
</security:SecurityModel>
...@@ -114,11 +114,36 @@ public class SFGeneratorImpl implements SFGenerator { ...@@ -114,11 +114,36 @@ public class SFGeneratorImpl implements SFGenerator {
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
Path securityPath = Paths.get("My.security"); {
byte[] securityModel = Files.readAllBytes(securityPath); String SFName = "testProsumer";
Path securityPath = Paths.get("securityModelWithoutCred.security");
byte[] securityModel = Files.readAllBytes(securityPath);
SFGenerator cdGenerator = new SFGeneratorImpl();
SF cd = cdGenerator.generateSecurityFilter(SFName,"SF", "http://192.168.150.131:8080/SecurityTokenService/services/securitytokenservice", securityModel, ServiceType.PROSUMER);
FileUtils.writeByteArrayToFile(new File( "." + File.separatorChar + SFName + File.separatorChar + "SecurityfilterServletProxy.war"), cd.getWar());
}
{
String SFName = "testProviderWithoutCred";
Path securityPath = Paths.get("securityModelWithoutCred.security");
byte[] securityModel = Files.readAllBytes(securityPath);
SFGenerator cdGenerator = new SFGeneratorImpl();
SF cd = cdGenerator.generateSecurityFilter(SFName,"SF", "http://192.168.150.131:8080/SecurityTokenService/services/securitytokenservice", securityModel, ServiceType.PROVIDER);
FileUtils.writeByteArrayToFile(new File( "." + File.separatorChar + SFName + File.separatorChar + "SecurityfilterServletProxy.war"), cd.getWar());
}
{
String SFName = "testProviderWithCred";
Path securityPath = Paths.get("securityModelWithCred.security");
byte[] securityModel = Files.readAllBytes(securityPath);
SFGenerator cdGenerator = new SFGeneratorImpl();
SF cd = cdGenerator.generateSecurityFilter(SFName,"SF", "http://192.168.150.131:8080/SecurityTokenService/services/securitytokenservice", securityModel, ServiceType.PROVIDER);
FileUtils.writeByteArrayToFile(new File( "." + File.separatorChar + SFName + File.separatorChar + "SecurityfilterServletProxy.war"), cd.getWar());
}
SFGenerator cdGenerator = new SFGeneratorImpl();
SF cd = cdGenerator.generateSecurityFilter("tes2","SF", "http://192.168.150.131:8080/SecurityTokenService/services/securitytokenservice", securityModel, ServiceType.PROSUMER);
FileUtils.writeByteArrayToFile(new File( "." + File.separatorChar + "SecurityfilterServletProxy.war"), cd.getWar());
} }
} }
SecurityFilter and generation
Version 1.0.0-M2
CRV-96 : Create a reverse proxy for SOAP service
CRV-97 : create datamodel for the service description
CRV-98 : Create the SF generator
CRV-99 : Create the graphical editor for the security service description
CRV-104 : Implementation of the Security Filter to issue and map username credential
CRV-127 : Create API to push service credential
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment