PicketLink Federation Core 2.1.6.Final-redhat-2

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

java.lang.Object
  extended by org.picketlink.identity.federation.core.wstrust.PicketLinkSTS
All Implemented Interfaces:
Provider<SOAPMessage>

@WebServiceProvider(serviceName="PicketLinkSTS",
                    portName="PicketLinkSTSPort",
                    targetNamespace="urn:picketlink:identity-federation:sts",
                    wsdlLocation="WEB-INF/wsdl/PicketLinkSTS.wsdl")
@ServiceMode(value=MESSAGE)
public class PicketLinkSTS
extends Object
implements Provider<SOAPMessage>

Default implementation of the SecurityTokenService interface.

Author:
Stefan Guilhen

Nested Class Summary
static class PicketLinkSTS.BinaryToken
           
 
Field Summary
static ThreadLocal<PicketLinkSTS.BinaryToken> binaryToken
           
protected  STSConfiguration config
           
protected  WebServiceContext context
           
 
Constructor Summary
PicketLinkSTS()
           
 
Method Summary
protected  STSConfiguration getConfiguration()
           Obtains the STS configuration options.
protected  Source handleTokenRequest(RequestSecurityToken request)
           Process a security token request.
protected  Source handleTokenRequestCollection(RequestSecurityTokenCollection requestCollection)
           Process a collection of security token requests.
 SOAPMessage invoke(SOAPMessage request)
           
protected  Source marshallResponse(RequestSecurityTokenResponse response)
           Marshalls the specified RequestSecurityTokenResponse into a Source instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected WebServiceContext context

config

protected STSConfiguration config

binaryToken

public static ThreadLocal<PicketLinkSTS.BinaryToken> binaryToken
Constructor Detail

PicketLinkSTS

public PicketLinkSTS()
Method Detail

invoke

public SOAPMessage invoke(SOAPMessage request)
Specified by:
invoke in interface Provider<SOAPMessage>

handleTokenRequest

protected Source handleTokenRequest(RequestSecurityToken request)

Process a security token request.

Parameters:
request - a RequestSecurityToken instance that contains the request information.
Returns:
a Source instance representing the marshalled response.
Throws:
WebServiceException - Any exception encountered in handling token

handleTokenRequestCollection

protected Source handleTokenRequestCollection(RequestSecurityTokenCollection requestCollection)

Process a collection of security token requests.

Parameters:
requestCollection - a RequestSecurityTokenCollection containing the various requests information.
Returns:
a Source instance representing the marshalled response.

marshallResponse

protected Source marshallResponse(RequestSecurityTokenResponse response)

Marshalls the specified RequestSecurityTokenResponse into a Source instance.

Parameters:
response - the RequestSecurityTokenResponse to be marshalled.
Returns:
the resulting Source instance.

getConfiguration

protected STSConfiguration getConfiguration()
                                     throws ConfigurationException

Obtains the STS configuration options.

Returns:
an instance of STSConfiguration containing the STS configuration properties.
Throws:
ConfigurationException

PicketLink Federation Core 2.1.6.Final-redhat-2

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