org.jboss.identity.federation.bindings.jboss.trust
Class JBossSTS

java.lang.Object
  extended by org.jboss.identity.federation.bindings.jboss.trust.JBossSTS
All Implemented Interfaces:
javax.xml.ws.Provider<javax.xml.transform.Source>, SecurityTokenService

@WebServiceProvider
@ServiceMode(value=PAYLOAD)
public class JBossSTS
extends java.lang.Object
implements SecurityTokenService

Default implementation of the SecurityTokenService interface.

Author:
Stefan Guilhen

Field Summary
protected  javax.xml.ws.WebServiceContext context
           
 
Constructor Summary
JBossSTS()
           
 
Method Summary
protected  STSConfiguration getConfiguration()
           Obtains the STS configuration options.
protected  javax.xml.transform.Source handleTokenRequest(RequestSecurityToken request)
           Process a security token request.
protected  javax.xml.transform.Source handleTokenRequestCollection(RequestSecurityTokenCollection requestCollection)
           Process a collection of security token requests.
 javax.xml.transform.Source invoke(javax.xml.transform.Source request)
           
protected  javax.xml.transform.Source marshallResponse(RequestSecurityTokenResponse response)
           Marshalls the specified RequestSecurityTokenResponse into a Source instance.
protected  javax.xml.transform.Source marshallResponse(RequestSecurityTokenResponseCollection responseCollection)
           Marshalls the specified RequestSecurityTokenResponseCollection 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 javax.xml.ws.WebServiceContext context
Constructor Detail

JBossSTS

public JBossSTS()
Method Detail

invoke

public javax.xml.transform.Source invoke(javax.xml.transform.Source request)
Specified by:
invoke in interface javax.xml.ws.Provider<javax.xml.transform.Source>
Specified by:
invoke in interface SecurityTokenService

handleTokenRequest

protected javax.xml.transform.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.

handleTokenRequestCollection

protected javax.xml.transform.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 javax.xml.transform.Source marshallResponse(RequestSecurityTokenResponse response)

Marshalls the specified RequestSecurityTokenResponse into a Source instance.

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

marshallResponse

protected javax.xml.transform.Source marshallResponse(RequestSecurityTokenResponseCollection responseCollection)

Marshalls the specified RequestSecurityTokenResponseCollection into a Source instance.

Parameters:
responseCollection - the RequestSecurityTokenResponseCollection to be marshalled.
Returns:
the resulting Source instance.

getConfiguration

protected STSConfiguration getConfiguration()

Obtains the STS configuration options.

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


Copyright © 2009 JBoss Inc.. All Rights Reserved.