public class WSTrustServiceFactory extends Object
Factory class used for instantiating pluggable services, such as the WSTrustRequestHandler and
SecurityTokenProvider implementations.
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static WSTrustServiceFactory getInstance()
Obtains a reference to the singleton instance.
WSTrustConfigurationFactory singleton.public WSTrustRequestHandler createRequestHandler(String handlerClassName, STSConfiguration configuration)
Constructs and returns the WSTrustRequestHandler that will be used to handle WS-Trust requests.
configuration - a reference to the STSConfiguration.WSTrustRequestHandler object.public SecurityTokenProvider createTokenProvider(String providerClass, Map<String,String> properties)
Constructs and returns a SecurityTokenProvider from the specified class name.
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.SecurityTokenProvider object.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.
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.ClaimsProcessor object.Copyright © 2018 JBoss by Red Hat. All rights reserved.