Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify SAML properties file in Wss4jInterceptor [SWS-796] #878

Closed
gregturn opened this issue Sep 14, 2012 · 5 comments
Closed

Ability to specify SAML properties file in Wss4jInterceptor [SWS-796] #878

gregturn opened this issue Sep 14, 2012 · 5 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Sep 14, 2012

jaminh opened SWS-796 and commented

Performing the SAMLTokenSigned securement action requires that the samlPropFile option has been set on the Wss4jHandler object. A setter should be exposed on the Wss4jInterceptor to set that option.


Attachments:

Issue Links:

  • #895 Error loading SAML properties file

Referenced from: commits dfd9626

@gregturn
Copy link
Member Author

@gregturn gregturn commented Oct 8, 2012

jaminh commented

Pulled this from the Wss4j JUnit tests

@gregturn
Copy link
Member Author

@gregturn gregturn commented Oct 8, 2012

jaminh commented

Modified version pulled from Wss4j JUnits

@gregturn
Copy link
Member Author

@gregturn gregturn commented Oct 8, 2012

jaminh commented

Example SAML properties. Notice you have to define the Crypto used for the SAML assertion in the SAML properties file.

@gregturn
Copy link
Member Author

@gregturn gregturn commented Oct 8, 2012

jaminh commented

After adding a setter for the SAML properties file to the Wss4jSecurityInterceptor I was able to successfully create a soap message with a signed SAML token. Creating a SAML token requires a SAML properties file and a SAML CallbackHandler so I will include examples of the ones I used for testing.

Here is the necessary setter method.
/**

  • Set the location of the SAML properties file.
  • @param location the location of the SAML properties file
    */
    public void setSamlPropertiesFile(String location)
    {
    this.handler.setOption(WSHandlerConstants.SAML_PROP_FILE, location);
    }
@gregturn
Copy link
Member Author

@gregturn gregturn commented Dec 3, 2012

Arjen Poutsma commented

Property added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.