org.eclipse.higgins.sts.server.extension.SAML_1_0.ref_impl
Class SelfSignedIssuer

java.lang.Object
  extended by org.eclipse.higgins.sts.server.extension.SAML_1_0.ref_impl.SelfSignedIssuer
All Implemented Interfaces:
SecurityTokenServiceExtension

public class SelfSignedIssuer
extends java.lang.Object
implements SecurityTokenServiceExtension

Handle RSTs and generate RSTRs as SAML Assertions. Compatible with www.identityblog.com

Author:
mikemci@us.ibm.com

Constructor Summary
protected SelfSignedIssuer()
          Protected constructor, must use SelfSignedIssuerFactory
 
Method Summary
 boolean canCancel(org.w3c.dom.Element elemCancelTarget)
          Called by the framework when a cancel request is received to determine which extension should process the cancel request.
 boolean canValidate(org.w3c.dom.Element elemValidateTarget)
          Called by the framework when a validate request is received to determine which extension should process the validate request.
 void Initialize(java.util.Properties propertiesExtension)
          Called by the fraemwork before the first call to invoke, and anytime initialize is invoked.
 STSResponse invoke(STSRequest request)
          Called for each received RST for SAML, generates a set of RSTRs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfSignedIssuer

protected SelfSignedIssuer()
Protected constructor, must use SelfSignedIssuerFactory

Method Detail

Initialize

public void Initialize(java.util.Properties propertiesExtension)
Called by the fraemwork before the first call to invoke, and anytime initialize is invoked.

Specified by:
Initialize in interface SecurityTokenServiceExtension
Parameters:
propertiesExtension - poperties configured for the extension.

invoke

public STSResponse invoke(STSRequest request)
Called for each received RST for SAML, generates a set of RSTRs.

Specified by:
invoke in interface SecurityTokenServiceExtension
Parameters:
principal - authenticated WSS principal
elemRST - array of children of the RST
htLocalNameToElement - map of element names to Elements (from the RST)
strAction - URI from the WSA Action header
strFrom - URI from the WSA From header
strTo - URI from the WSA To header
strPrincipalName - name of authenticated WSS principal
strRequestTokenType - URI from WST TokenType
strRequestType - URI from WST RequestType
strAppliesToEndpointReferenceAddress - URI from WST AppliesTo EPR
Returns:
an array of children for each RSTR, each containing an array of elements for the children of the RSTR

canCancel

public boolean canCancel(org.w3c.dom.Element elemCancelTarget)
Called by the framework when a cancel request is received to determine which extension should process the cancel request.

Specified by:
canCancel in interface SecurityTokenServiceExtension
Parameters:
elemCancelTarget - specifies the token to cancel.
Returns:
true if the extension can cancel the specified token, otherwise false.

canValidate

public boolean canValidate(org.w3c.dom.Element elemValidateTarget)
Called by the framework when a validate request is received to determine which extension should process the validate request.

Specified by:
canValidate in interface SecurityTokenServiceExtension
Parameters:
elemValidateTarget - specifies the token to validate.
Returns:
true if the extension can validate the specified token, otherwise false.