public class AttributeConsumingServiceSelector extends Object
AttributeConsumingService based on input of a mandatory
RoleDescriptor and an optional index.
This implementation supports selecting an AttributeConsumingService from parent role descriptors of the following types:
SPSSODescriptorAttributeQueryDescriptorType
Subclasses should override getCandidates() if support for additional sources of attribute consuming services
is needed.
The selection algorithm is:
isOnBadIndexUseDefault() is true, then the default service is returned as described below; otherwise null is
returned.| コンストラクタと説明 |
|---|
AttributeConsumingServiceSelector() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected List<AttributeConsumingService> |
getCandidates()
Get the list of candidate attribute consuming services.
|
Integer |
getIndex()
Get the index of the desired service.
|
RoleDescriptor |
getRoleDescriptor()
Get the AttributeConsumingServie's parent RoleDescriptor.
|
boolean |
isOnBadIndexUseDefault()
Get the flag which determines whether, in the case of an invalid index, to return the default
AttributeConsumingService.
|
AttributeConsumingService |
selectService()
Select the AttributeConsumingService.
|
void |
setIndex(Integer requestedIndex)
Set the index of the desired service.
|
void |
setOnBadIndexUseDefault(boolean flag)
Set the flag which determines whether, in the case of an invalid index, to return the default
AttributeConsumingService.
|
void |
setRoleDescriptor(RoleDescriptor descriptor)
Set the AttributeConsumingServie's parent RoleDescriptor.
|
public Integer getIndex()
public void setIndex(Integer requestedIndex)
requestedIndex - The index to set.public RoleDescriptor getRoleDescriptor()
public void setRoleDescriptor(RoleDescriptor descriptor)
descriptor - The roleDescriptor to set.public void setOnBadIndexUseDefault(boolean flag)
flag - The onBadIndexUseDefault to set.public boolean isOnBadIndexUseDefault()
public AttributeConsumingService selectService()
protected List<AttributeConsumingService> getCandidates()
This implementation supports selecting an AttributeConsumingService from parent role descriptors of the following types:
SPSSODescriptorAttributeQueryDescriptorTypeSubclasses should override if support for additional sources of attribute consuming services is needed.
Copyright © 2012. All Rights Reserved.