public class MapBasedTokenHandler extends AbstractPicketLinkTrustHandler
Handler that looks for a binary token data that exists in jaasOptionsMap supplied in constructor.
Configuration:
System Properties:
Please see the see also section.
setEncodingType(String)
,
setValueType(String)
,
setValueTypeNamespace(String)
,
Modifier and Type | Field and Description |
---|---|
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.
|
AUTHZ_MGR_LOOKUP, headers, logger, SEC_MGR_LOOKUP
Constructor and Description |
---|
MapBasedTokenHandler(Map<String,?> jaasOptionsMap) |
Modifier and Type | Method and Description |
---|---|
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
|
close, getAssertionFromSubject, getHeaders, getSecurityDomainName, getSecurityHeaderElement, getServletContext, getUsername, handleFault, handleMessage, lookupJNDI, trace
public static final String SYS_PROP_TOKEN_KEY
public static final String DEFAULT_TOKEN_KEY
public final String tokenOptionKey
public final String validationTokenClassKey
public void setEncodingType(String binaryEncodingType)
Set the EncodingType value.
Alternatively, set the system property "binary.http.encodingType"
binaryEncodingType
- public void setValueType(String binaryValueType)
Set the Value type
Alternatively, set the system property "binary.http.valueType"
binaryValueType
- public void setValueTypeNamespace(String binaryValueNamespace)
Set the ValueType Namespace
Alternatively, set the system property "binary.http.valueType.namespace"
binaryValueNamespace
- public void setValueTypePrefix(String binaryValuePrefix)
Set the Value Type Prefix
Alternatively, set the system property "binary.http.valueType.prefix"
binaryValuePrefix
- protected boolean handleInbound(MessageContext msgContext)
handleInbound
in class AbstractPicketLinkTrustHandler
protected boolean handleOutbound(MessageContext msgContext)
handleOutbound
in class AbstractPicketLinkTrustHandler
Copyright © 2018 JBoss by Red Hat. All rights reserved.