nl.surfnet.coin.janus
Interface Janus

All Known Implementing Classes:
JanusRestClient

public interface Janus

Interface to Janus.


Nested Class Summary
static class Janus.Metadata
           
 
Method Summary
 List<String> getAllowedSps(String idpentityid)
          Refer to getAllowedSps(String, String) but without the revision parameter.
 List<String> getAllowedSps(String idpentityid, String revision)
          Get a list of SP entity ID's that are allowed for this IdP.
 ARP getArp(String entityId)
          Retrieves the Attribute Release Policy for this entity
 List<String> getEntityIdsByMetaData(Janus.Metadata key, String value)
          Get a list of entity ids that match the given metadata key/value pair.
 EntityMetadata getMetadataByEntityId(String entityId)
          Get a client's metadata by his entityId.
 List<EntityMetadata> getSpList()
          Retrieves a list of all Service Providers.
 boolean isConnectionAllowed(String spEntityId, String idpEntityId)
          Return true or false depending wether connection is allowed or not.
 

Method Detail

getMetadataByEntityId

EntityMetadata getMetadataByEntityId(String entityId)
Get a client's metadata by his entityId.

Parameters:
entityId - the entityId

getEntityIdsByMetaData

List<String> getEntityIdsByMetaData(Janus.Metadata key,
                                    String value)
Get a list of entity ids that match the given metadata key/value pair.

Parameters:
key - the metadata key
value - the value the give metadata key should have
Returns:
the entity id

getAllowedSps

List<String> getAllowedSps(String idpentityid)
Refer to getAllowedSps(String, String) but without the revision parameter.


getAllowedSps

List<String> getAllowedSps(String idpentityid,
                           String revision)
Get a list of SP entity ID's that are allowed for this IdP.

Parameters:
idpentityid - the IdPs entity id.
revision - the revision.
Returns:
List of entity id's from service providers the idp is linked to

getSpList

List<EntityMetadata> getSpList()
Retrieves a list of all Service Providers.

Returns:
for each SP (by entity id), a map of attributes and its values.

getArp

ARP getArp(String entityId)
Retrieves the Attribute Release Policy for this entity

Parameters:
entityId - the identifier of the entity
Returns:
ARP

isConnectionAllowed

boolean isConnectionAllowed(String spEntityId,
                            String idpEntityId)
Return true or false depending wether connection is allowed or not.

Parameters:
spEntityId - identifier of the Service Provider
idpEntityId - identifier of the Identity Provider
Returns:
true of the connection is allowed, otherwise false


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