PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.wstrust
Class WSTrustServiceFactory

java.lang.Object
  extended by org.picketlink.identity.federation.core.wstrust.WSTrustServiceFactory

public class WSTrustServiceFactory
extends Object

Factory class used for instantiating pluggable services, such as the WSTrustRequestHandler and SecurityTokenProvider implementations.

Author:
Stefan Guilhen

Method Summary
 ClaimsProcessor createClaimsProcessor(String processorClass, Map<String,String> properties)
           Constructs and returns a ClaimsProcessor from the specified class name.
 WSTrustRequestHandler createRequestHandler(String handlerClassName, STSConfiguration configuration)
           Constructs and returns the WSTrustRequestHandler that will be used to handle WS-Trust requests.
 SecurityTokenProvider createTokenProvider(String providerClass, Map<String,String> properties)
           Constructs and returns a SecurityTokenProvider from the specified class name.
static WSTrustServiceFactory getInstance()
           Obtains a reference to the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WSTrustServiceFactory getInstance()

Obtains a reference to the singleton instance.

Returns:
the WSTrustConfigurationFactory singleton.

createRequestHandler

public WSTrustRequestHandler createRequestHandler(String handlerClassName,
                                                  STSConfiguration configuration)

Constructs and returns the WSTrustRequestHandler that will be used to handle WS-Trust requests.

Parameters:
configuration - a reference to the STSConfiguration.
Returns:
a reference to the constructed WSTrustRequestHandler object.

createTokenProvider

public SecurityTokenProvider createTokenProvider(String providerClass,
                                                 Map<String,String> properties)

Constructs and returns a SecurityTokenProvider from the specified class name.

Parameters:
providerClass - the FQN of the SecurityTokenProvider to be instantiated.
properties - a Map<String, String> containing the properties that have been configured for the token provider.
Returns:
a reference to the constructed SecurityTokenProvider object.

createClaimsProcessor

public ClaimsProcessor createClaimsProcessor(String processorClass,
                                             Map<String,String> properties)

Constructs and returns a ClaimsProcessor from the specified class name. The processor is initialized with the specified properties map.

Parameters:
processorClass - the FQN of the ClaimsProcessor to be instantiated.
properties - a Map<String, String> containing the properties that have been configured for the claims processor.
Returns:
a reference to the constructed ClaimsProcessor object.

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.