eu.emi.dsr.security.util
Class AttributeSourcesChain.Merge
java.lang.Object
eu.emi.dsr.security.util.AttributeSourcesChain.Merge
- All Implemented Interfaces:
- AttributeSourcesChain.CombiningPolicy
- Enclosing class:
- AttributeSourcesChain
public static class AttributeSourcesChain.Merge
- extends Object
- implements AttributeSourcesChain.CombiningPolicy
Merge: attributes with the same key are combined (values are added).
This is always OK for XACML attributes (only duplicates are not maintained) and
for lists of valid values. However for regular incarnation attributes
(like xlogin, role, primary gid, queue) only one value make sense. So in case of
default values obtained from AS of incarnation attributes the same policy is
used as in MERGE_LAST_OVERRIDS.
NAME
public static final String NAME
- See Also:
- Constant Field Values
AttributeSourcesChain.Merge
public AttributeSourcesChain.Merge()
combineAttributes
public boolean combineAttributes(SubjectAttributesHolder master,
SubjectAttributesHolder newAttributes)
- Description copied from interface:
AttributeSourcesChain.CombiningPolicy
- combines new attributes with the already existing ones
- Specified by:
combineAttributes in interface AttributeSourcesChain.CombiningPolicy
- Parameters:
master - - the already existing attributesnewAttributes - - the new attributes
- Returns:
- true if next attribute sources should be evaluated, false if processing should be stopped.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.