@ThreadSafe public class PrescopedAttributeDefinition extends AbstractAttributeDefinition
ScopedStringAttributeValues 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() |
| Modifier and Type | Method and Description |
|---|---|
private IdPAttributeValue<?> |
buildScopedStringAttributeValue(StringAttributeValue value)
Builds a
ScopedStringAttributeValue from a StringAttributeValue whose value contains a delimited
value. |
protected IdPAttribute |
doAttributeDefinitionResolve(AttributeResolutionContext resolutionContext,
AttributeResolverWorkContext workContext) |
protected void |
doInitialize() |
String |
getScopeDelimiter()
Get delimiter between value and scope.
|
void |
setScopeDelimiter(String newScopeDelimiter)
Set the delimiter between value and scope.
|
doResolve, getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getLogPrefix, getSourceAttributeId, isDependencyOnly, setAttributeEncoders, setDependencyOnly, setDisplayDescriptions, setDisplayNames, setSourceAttributeIddoDestroy, equals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyed, isInitializedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitialize, isInitializeddestroy, isDestroyedgetId@Nonnull private final org.slf4j.Logger log
private String scopeDelimiter
@Nonnull public String getScopeDelimiter()
public void setScopeDelimiter(@Nonnull@NotEmpty String newScopeDelimiter)
newScopeDelimiter - delimiter between value and scope@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull AttributeResolutionContext resolutionContext, @Nonnull AttributeResolverWorkContext workContext) throws ResolutionException
doAttributeDefinitionResolve in class AbstractAttributeDefinitionResolutionException@Nonnull private IdPAttributeValue<?> buildScopedStringAttributeValue(@Nonnull StringAttributeValue value) throws ResolutionException
ScopedStringAttributeValue from a StringAttributeValue whose value contains a delimited
value.value - the original attribute valueResolutionException - thrown if the given attribute value does not contain a delimited valueprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractAttributeDefinitionComponentInitializationExceptionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.