public class PrescopedAttributeDefinition extends BaseAttributeDefinition
ScopedAttributeValue
s by taking a source attribute value splitting it
at a delimiter. The first atom becomes the attribute value and the second value becomes the scope.Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private String |
scopeDelimiter
Delimiter between value and scope.
|
Constructor and Description |
---|
PrescopedAttributeDefinition(String delimiter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BaseAttribute<ScopedAttributeValue> |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute.
|
String |
getScopeDelimited()
Get delimiter between value and scope.
|
void |
validate()
Validate the internal state of this plug-in.
|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencyIds, getId
private final org.slf4j.Logger log
private String scopeDelimiter
public PrescopedAttributeDefinition(String delimiter)
delimiter
- scope of the attributepublic BaseAttribute<ScopedAttributeValue> doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution contextAttributeResolutionException
- thrown if there is a problem resolving and creating the attributepublic String getScopeDelimited()
public void validate() throws AttributeResolutionException
AttributeResolutionException
- if the plug-in has an invalid internal stateCopyright © 1999-2012. All Rights Reserved.