de.fzj.unicore.uas.security
Class SecurityManager.NullAuthoriser

java.lang.Object
  extended by de.fzj.unicore.uas.security.SecurityManager.NullAuthoriser
All Implemented Interfaces:
IAttributeSource
Enclosing class:
SecurityManager

public static class SecurityManager.NullAuthoriser
extends java.lang.Object
implements IAttributeSource


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
SecurityManager.NullAuthoriser()
           
 
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)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManager.NullAuthoriser

public SecurityManager.NullAuthoriser()
Method Detail

getAttributes

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)
Description copied from interface: IAttributeSource
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. This information is supplied in the "otherAuthoriserInfo" map.
Attribute sources must not make any authorisation decisions. Thus, no exceptions must be thrown if no attributes are found. Only IOExceptions should be thrown in case of technical problems contacting the actual attribute provider. This is to allow upstream code (i.e. the UNICORE/X server) to log the error, or to take any other action (like notify an administrator). If no attributes are found, an empty map or null

Specified by:
getAttributes in interface IAttributeSource
Parameters:
tokens - - security tokens for this request
unused - - attributes returned by other authorisers, which may be null
Returns:
authorisation attributes, i.e. a mapping of attribute names to lists of values

getStatusDescription

public java.lang.String getStatusDescription()
Description copied from interface: IAttributeSource
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. UNICORE/X will print a log entry describing the status immediately after startup.
This method should not block for too long, since the server startup would be stalled in this case. For example, you may use the TimeoutRunner class to avoid blocking.

Specified by:
getStatusDescription in interface IAttributeSource
Returns:
a String describing this attribute source's status.

init

public void init(java.lang.String name)
Description copied from interface: IAttributeSource
initialise the source

Specified by:
init in interface IAttributeSource

getName

public java.lang.String getName()
Description copied from interface: IAttributeSource
This method should return name of this attribute source, which was passed to the init() method.

Specified by:
getName in interface IAttributeSource
Returns:


Copyright © 2006-2010 Research Center Juelich. All Rights Reserved.