|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn<BaseAttribute>
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.PrescopedAttributeDefinition
public class PrescopedAttributeDefinition
An attribute definition that creates 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.
Field Summary | |
---|---|
private org.slf4j.Logger |
log
Class logger. |
private String |
scopeDelimiter
Delimiter between value and scope. |
Constructor Summary | |
---|---|
PrescopedAttributeDefinition(String delimiter)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition |
---|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn |
---|
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ResolutionPlugIn |
---|
getDependencyIds, getId |
Field Detail |
---|
private final org.slf4j.Logger log
private String scopeDelimiter
Constructor Detail |
---|
public PrescopedAttributeDefinition(String delimiter)
delimiter
- scope of the attributeMethod Detail |
---|
public BaseAttribute<ScopedAttributeValue> doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution context
AttributeResolutionException
- 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 state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |