Package org.picketlink.identity.federation.core.wstrust.plugins.saml

Examples of org.picketlink.identity.federation.core.wstrust.plugins.saml.SAML20TokenProvider


    private SAML20TokenProvider provider;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        this.provider = new SAML20TokenProvider();
        Map<String, String> properties = new HashMap<String, String>();
        properties.put("AttributeProvider", SAML20TokenRoleAttributeProvider.class.getName());
        properties.put(SAML20TokenRoleAttributeProvider.class.getName() + ".tokenRoleAttributeName", "roleAttributeName");
        provider.initialize(properties);
    }
View Full Code Here


     *
     * @throws Exception if an error occurs while running the test.
     */
    @Test
    public void testIssueSAMLV20Token() throws Exception {
        this.provider = new SAML20TokenProvider();
        provider.initialize(new HashMap<String, String>());

        SAMLAssertionParser assertionParser = new SAMLAssertionParser();

        // create a WSTrustRequestContext with a simple WS-Trust request.
View Full Code Here

     * @throws Exception if an error occurs while running the test.
     */
    @Test
    public void testIssueSAMLV20HolderOfKeyToken() throws Exception {

        this.provider = new SAML20TokenProvider();
        provider.initialize(new HashMap<String, String>());
        // create a WSTrustRequestContext with a simple WS-Trust request.
        RequestSecurityToken request = new RequestSecurityToken();
        request.setLifetime(WSTrustUtil.createDefaultLifetime(3600000));
        request.setAppliesTo(WSTrustUtil.createAppliesTo("http://services.testcorp.org/provider2"));
View Full Code Here

     *
     * @throws Exception if an error occurs while running the test.
     */
    @Test
    public void testValidateSAMLV20Token() throws Exception {
        this.provider = new SAML20TokenProvider();
        provider.initialize(new HashMap<String, String>());

        // issue a SAMLV2.0 assertion.
        WSTrustRequestContext context = this.createIssuingContext(WSTrustUtil.createDefaultLifetime(3600000));
        this.provider.issueToken(context);
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.core.wstrust.plugins.saml.SAML20TokenProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.