Package org.jboss.identity.federation.core.wstrust

Examples of org.jboss.identity.federation.core.wstrust.SecurityTokenProvider


      {
         WSTrustServiceFactory serviceFactory = WSTrustServiceFactory.getInstance();
         for (TokenProviderType provider : providers.getTokenProvider())
         {
            // create and initialize the token provider.
            SecurityTokenProvider tokenProvider = serviceFactory.createTokenProvider(provider.getProviderClass());
            Map<String, String> properties = new HashMap<String, String>();
            for(PropertyType propertyType : provider.getProperty())
               properties.put(propertyType.getName(), propertyType.getValue());
            tokenProvider.initialize(properties);
            // token providers can be keyed by the token type and by token element + namespace.
            this.tokenProviders.put(provider.getTokenType(), tokenProvider);
            String tokenElementAndNS = provider.getTokenElement() + "$" + provider.getTokenElementNS();
            this.tokenProviders.put(tokenElementAndNS, tokenProvider);
         }
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.core.wstrust.SecurityTokenProvider

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.