eu.emi.dsr.security.util
Class AttributeSourcesChain.FirstApplicable

java.lang.Object
  extended by eu.emi.dsr.security.util.AttributeSourcesChain.FirstApplicable
All Implemented Interfaces:
AttributeSourcesChain.CombiningPolicy
Enclosing class:
AttributeSourcesChain

public static class AttributeSourcesChain.FirstApplicable
extends Object
implements AttributeSourcesChain.CombiningPolicy

first applicable: only the first not empty map of attributes is used


Field Summary
static String NAME
           
 
Constructor Summary
AttributeSourcesChain.FirstApplicable()
           
 
Method Summary
 boolean combineAttributes(SubjectAttributesHolder master, SubjectAttributesHolder newAttributes)
          combines new attributes with the already existing ones
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

AttributeSourcesChain.FirstApplicable

public AttributeSourcesChain.FirstApplicable()
Method Detail

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 attributes
newAttributes - - 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.