|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.dsr.aip.FileAttributeSource
public class FileAttributeSource
Retrieves client's attributes from a file. File format is quite simple:
You can add arbitrary number of attributes and attribute values.nobody somebody user
Configuration of this source consist of two entries:
Evaluation is simplistic: the first entry matching the client is used (important when you use wildcards).
The attributes file is automatically refreshed after any change, before subsequent read. If the syntax is wrong then loud message is logged and old version is used.
Some attribute names are special: xlogin, role, group, supplementaryGroups, addOsGroups, queue. Attributes with those names (case insensitive) are handled as those special UNICORE attributes (e.g. xlogin is used to provide available local OS user names for the client).
All other attributes are treated as XACML authorization attributes of String type and are passed to the PDP. Such attributes must have at least one value to be processed.
| Field Summary | |
|---|---|
static String |
SPECIAL_ADD_OS_GIDS
|
static String |
SPECIAL_GROUP
|
static String |
SPECIAL_QUEUE
|
static String |
SPECIAL_ROLE
|
static String |
SPECIAL_SUP_GROUPS
|
static String |
SPECIAL_XLOGIN
|
| Fields inherited from interface eu.emi.dsr.security.IAttributeSource |
|---|
ATTRIBUTE_ADD_DEFAULT_GROUPS, ATTRIBUTE_GROUP, ATTRIBUTE_ROLE, ATTRIBUTE_SUPPLEMENTARY_GROUPS, ATTRIBUTE_VOS, ROLE_ADMIN, ROLE_ANONYMOUS |
| Constructor Summary | |
|---|---|
FileAttributeSource()
|
|
| Method Summary | |
|---|---|
String[] |
getAcceptedVOs()
This method returns the list of VOs that this attribute source supports. |
SubjectAttributesHolder |
getAttributes(SecurityTokens tokens,
SubjectAttributesHolder otherAuthoriserInfo)
Retrieves a map of attributes based on the supplied SecurityTokens. Since authorisers can be chained, it might be sometimes useful to see attributes returned by authorisers that have run previously. |
String |
getName()
This method should return name of this attribute source, which was passed to the init() method. |
String |
getStatusDescription()
Get a user-friendly description of the attribute source's status. This is used for informing the administrator of any problems with configuration, connection problems, etc. |
void |
init(String name)
initialise the source |
void |
setFile(String uudbFile)
|
void |
setMatching(String val)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SPECIAL_XLOGIN
public static final String SPECIAL_ROLE
public static final String SPECIAL_GROUP
public static final String SPECIAL_SUP_GROUPS
public static final String SPECIAL_ADD_OS_GIDS
public static final String SPECIAL_QUEUE
| Constructor Detail |
|---|
public FileAttributeSource()
| Method Detail |
|---|
public void init(String name)
throws Exception
IAttributeSource
init in interface IAttributeSourceException
public SubjectAttributesHolder getAttributes(SecurityTokens tokens,
SubjectAttributesHolder otherAuthoriserInfo)
throws IOException
IAttributeSourcenull must be returned.
getAttributes in interface IAttributeSourcetokens - - security tokens for this requestotherAuthoriserInfo - - attributes returned by other authorisers, which may be null
IOException - in case of technical problemspublic String getStatusDescription()
IAttributeSourceTimeoutRunner class to avoid blocking.
getStatusDescription in interface IAttributeSourcepublic String getName()
IAttributeSource
getName in interface IAttributeSourcepublic void setFile(String uudbFile)
public void setMatching(String val)
public String[] getAcceptedVOs()
IAttributeSource
getAcceptedVOs in interface IAttributeSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||