nl.surfnet.sab
Interface Sab

All Known Implementing Classes:
SabClient, SabClientMock

public interface Sab

Interface for SAB, the SURFnet Authorisation Beheer interface


Method Summary
 SabRoleHolder getRoles(String userId)
          Get the Role/organisation info for the given userId
 boolean hasRoleForOrganisation(String userId, String role, String organisation)
          Returns whether the given user has the given role for the given organisation
 

Method Detail

hasRoleForOrganisation

boolean hasRoleForOrganisation(String userId,
                               String role,
                               String organisation)
Returns whether the given user has the given role for the given organisation

Parameters:
userId -
role -
organisation -
Returns:
boolean

getRoles

SabRoleHolder getRoles(String userId)
                       throws IOException
Get the Role/organisation info for the given userId

Parameters:
userId - the userId to query for
Returns:
SabRoleHolder
Throws:
IOException - when IO fails or an error occurs (for example authentication failure)


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.