|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAttributeSource
IAttributeSource provides the interface for UNICORE/X to retrieve authorisation information
(attributes) for a particular request from an attribute provider, based on information
such as Client DN, certificate, etc, contained in an instance of SecurityTokens.
Lifecycle
IAttributeSource implementations are created and initialised by the AttributeSourceFactory,
which will create the instance using Class.forName(), set additional parameters, and finally call
the init() method. The IAuthoriser will be created only once, and will be kept alive during the
lifetime of the server.
Parameter injection
When creating an IAttributeSource instance, UNICORE/X will set parameters according to the properties
defined in the main configuration file (usually uas.config), provided there is a public
setter method. For example, if the class has a field setHost(String host), it
will be automatically invoked by UNICORE/X if the configuration has a property
uas.security.attributes.NAME1.Host
Currently parameters can be of type String, boolean, or numerical, for details see AttributeSourceFactory
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_ADD_DEFAULT_GROUPS
Add OS default groups. |
static java.lang.String |
ATTRIBUTE_GROUP
UNIX primary group attribute key. |
static java.lang.String |
ATTRIBUTE_QUEUES
BSS queue attribute key. |
static java.lang.String |
ATTRIBUTE_ROLE
UNICORE role attribute key. |
static java.lang.String |
ATTRIBUTE_SUPPLEMENTARY_GROUPS
UNIX supplementary groups attribute key. |
static java.lang.String |
ATTRIBUTE_XLOGIN
UNIX login attribute key. |
static java.lang.String |
ROLE_ADMIN
role attribute value: admin |
static java.lang.String |
ROLE_ANONYMOUS
role attribute value: anonymous |
static java.lang.String |
ROLE_TRUSTED_AGENT
role attribute value: trusted agent as asserted by a SAML trust delegation assertion |
static java.lang.String |
SAML_ATTRIBUTE_REQUEST_NAMEFORMAT
SAML attribute name for transporting attribute requests from client to server |
| 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[]> otherAuthoriserInfo)
Retrieves a map of attributes based on the supplied SecurityTokens. |
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)
initialise the source |
| Field Detail |
|---|
static final java.lang.String ATTRIBUTE_ROLE
static final java.lang.String ATTRIBUTE_XLOGIN
static final java.lang.String ATTRIBUTE_GROUP
static final java.lang.String ATTRIBUTE_SUPPLEMENTARY_GROUPS
static final java.lang.String ATTRIBUTE_ADD_DEFAULT_GROUPS
static final java.lang.String ATTRIBUTE_QUEUES
static final java.lang.String ROLE_TRUSTED_AGENT
static final java.lang.String ROLE_ANONYMOUS
static final java.lang.String ROLE_ADMIN
static final java.lang.String SAML_ATTRIBUTE_REQUEST_NAMEFORMAT
| Method Detail |
|---|
void init(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
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[]> otherAuthoriserInfo)
throws java.io.IOException
null
tokens - - security tokens for this requestotherAuthoriserInfo - - attributes returned by other authorisers, which may be null
java.io.IOException - in case of technical problemsjava.lang.String getStatusDescription()
TimeoutRunner class to avoid blocking.
java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||