PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

org.picketlink.trust.jbossws.handler
Class MapBasedTokenHandler

java.lang.Object
  extended by org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
      extended by org.picketlink.trust.jbossws.handler.MapBasedTokenHandler
All Implemented Interfaces:
Handler, SOAPHandler

public class MapBasedTokenHandler
extends AbstractPicketLinkTrustHandler

Handler that looks for a binary token data that exists in jaasOptionsMap supplied in constructor.

Configuration:

System Properties:

Setters:

Please see the see also section.

Since:
Jun 11, 2012
Author:
Anil.Saldhana@redhat.com, pskopek@redhat.com
See Also:
setEncodingType(String), setValueType(String), setValueTypeNamespace(String),


Field Summary
static String DEFAULT_TOKEN_KEY
           
static String SYS_PROP_TOKEN_KEY
           
 String tokenOptionKey
          The JAAS shared options map key name for binary token to be stored in.
 String validationTokenClassKey
          Key in the JAAS options map to find class name to validate token in inbound message handle method.
 
Fields inherited from class org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
AUTHZ_MGR_LOOKUP, headers, logger, SEC_MGR_LOOKUP
 
Constructor Summary
MapBasedTokenHandler(Map<String,?> jaasOptionsMap)
           
 
Method Summary
protected  boolean handleInbound(MessageContext msgContext)
           
protected  boolean handleOutbound(MessageContext msgContext)
           
 void setEncodingType(String binaryEncodingType)
           Set the EncodingType value.
 void setValueType(String binaryValueType)
           Set the Value type
 void setValueTypeNamespace(String binaryValueNamespace)
           Set the ValueType Namespace
 void setValueTypePrefix(String binaryValuePrefix)
           Set the Value Type Prefix
 
Methods inherited from class org.picketlink.trust.jbossws.handler.AbstractPicketLinkTrustHandler
close, getAssertionFromSubject, getHeaders, getSecurityDomainName, getSecurityHeaderElement, getServletContext, getUsername, handleFault, handleMessage, lookupJNDI, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_TOKEN_KEY

public static final String SYS_PROP_TOKEN_KEY
See Also:
Constant Field Values

DEFAULT_TOKEN_KEY

public static final String DEFAULT_TOKEN_KEY
See Also:
Constant Field Values

tokenOptionKey

public final String tokenOptionKey
The JAAS shared options map key name for binary token to be stored in.


validationTokenClassKey

public final String validationTokenClassKey
Key in the JAAS options map to find class name to validate token in inbound message handle method.

Constructor Detail

MapBasedTokenHandler

public MapBasedTokenHandler(Map<String,?> jaasOptionsMap)
Method Detail

setEncodingType

public void setEncodingType(String binaryEncodingType)

Set the EncodingType value.

Alternatively, set the system property "binary.http.encodingType"

Parameters:
binaryEncodingType -

setValueType

public void setValueType(String binaryValueType)

Set the Value type

Alternatively, set the system property "binary.http.valueType"

Parameters:
binaryValueType -

setValueTypeNamespace

public void setValueTypeNamespace(String binaryValueNamespace)

Set the ValueType Namespace

Alternatively, set the system property "binary.http.valueType.namespace"

Parameters:
binaryValueNamespace -

setValueTypePrefix

public void setValueTypePrefix(String binaryValuePrefix)

Set the Value Type Prefix

Alternatively, set the system property "binary.http.valueType.prefix"

Parameters:
binaryValuePrefix -

handleInbound

protected boolean handleInbound(MessageContext msgContext)
Overrides:
handleInbound in class AbstractPicketLinkTrustHandler

handleOutbound

protected boolean handleOutbound(MessageContext msgContext)
Overrides:
handleOutbound in class AbstractPicketLinkTrustHandler

PicketLink Federation Common Server Bindings for JBoss AS 2.1.6.Final-redhat-2

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