|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.uas.security.util.AttributeSourcesChain
public class AttributeSourcesChain
IAttributeSource implementation that combines the results from a chain of attribute sources using a configurable combining policy:
| Nested Class Summary | |
|---|---|
static interface |
AttributeSourcesChain.CombiningPolicy
defines how attributes should be combined |
static class |
AttributeSourcesChain.FirstAccessible
first accessible: the answer from the first accessible attribute source is used. |
static class |
AttributeSourcesChain.FirstApplicable
first applicable: only the first map of attributes is used |
static class |
AttributeSourcesChain.Merge
merge: attributes with the same key are combined |
static class |
AttributeSourcesChain.MergeLastOverrides
merge_last_overrides: new attributes overwrite existing ones |
| Field Summary |
|---|
| Fields inherited from interface de.fzj.unicore.uas.security.IAttributeSource |
|---|
ATTRIBUTE_ADD_DEFAULT_GROUPS, ATTRIBUTE_GROUP, ATTRIBUTE_QUEUES, ATTRIBUTE_ROLE, ATTRIBUTE_SUPPLEMENTARY_GROUPS, ATTRIBUTE_XLOGIN, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_TRUSTED_AGENT, SAML_ATTRIBUTE_REQUEST_NAMEFORMAT |
| Constructor Summary | |
|---|---|
AttributeSourcesChain()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String[]> |
getAttributes(eu.unicore.security.xfireutil.SecurityTokens tokens,
java.util.Map<java.lang.String,java.lang.String[]> unused)
combines results from all configured attribute sources |
java.util.List<IAttributeSource> |
getChain()
|
AttributeSourcesChain.CombiningPolicy |
getCombiningPolicy()
|
java.lang.String |
getName()
This method should return name of this attribute source, which was passed to the init() method. |
java.lang.String |
getStatusDescription()
Get a user-friendly description of the attribute source's status. |
void |
init(java.lang.String name)
will initialise all the authorisers in the chain by calling their init() method |
void |
setCombiningPolicy(java.lang.String name)
|
void |
setLegacyOrder(java.lang.String order)
|
void |
setOrder(java.lang.String order)
|
void |
setProperties(java.util.Properties p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeSourcesChain()
| Method Detail |
|---|
public void init(java.lang.String name)
throws java.lang.Exception
init in interface IAttributeSourcejava.lang.Exception
public java.util.Map<java.lang.String,java.lang.String[]> getAttributes(eu.unicore.security.xfireutil.SecurityTokens tokens,
java.util.Map<java.lang.String,java.lang.String[]> unused)
throws java.io.IOException,
AuthorisationException
getAttributes in interface IAttributeSourcetokens - - security tokens for this requestunused - - attributes returned by other authorisers, which may be null
java.io.IOException - in case of technical problems
AuthorisationExceptionpublic java.lang.String getStatusDescription()
IAttributeSourceTimeoutRunner class to avoid blocking.
getStatusDescription in interface IAttributeSourcepublic java.util.List<IAttributeSource> getChain()
public AttributeSourcesChain.CombiningPolicy getCombiningPolicy()
public void setProperties(java.util.Properties p)
public void setOrder(java.lang.String order)
public void setCombiningPolicy(java.lang.String name)
public void setLegacyOrder(java.lang.String order)
public java.lang.String getName()
IAttributeSource
getName in interface IAttributeSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||