nl.surfnet.coin.csa.util
Class JanusRestClientMock

java.lang.Object
  extended by nl.surfnet.coin.csa.util.JanusRestClientMock
All Implemented Interfaces:
nl.surfnet.coin.janus.Janus

public class JanusRestClientMock
extends Object
implements nl.surfnet.coin.janus.Janus

JanusRestClientMock.java


Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.surfnet.coin.janus.Janus
nl.surfnet.coin.janus.Janus.Metadata
 
Constructor Summary
JanusRestClientMock()
           
 
Method Summary
 List<String> getAllowedSps(String idpentityid)
           
 List<String> getAllowedSps(String idpentityid, String revision)
           
 nl.surfnet.coin.janus.domain.ARP getArp(String entityId)
           
 nl.surfnet.coin.janus.domain.JanusEntity getEntity(String entityId)
           
 List<String> getEntityIdsByMetaData(nl.surfnet.coin.janus.Janus.Metadata key, String value)
           
 List<nl.surfnet.coin.janus.domain.EntityMetadata> getIdpList()
           
 nl.surfnet.coin.janus.domain.EntityMetadata getMetadataByEntityId(String entityId)
           
 List<nl.surfnet.coin.janus.domain.EntityMetadata> getSpList()
           
 boolean isConnectionAllowed(String spEntityId, String idpEntityId)
           
 Object parseJsonData(org.codehaus.jackson.type.TypeReference<? extends Object> typeReference, String jsonFile)
           
 void setJanusUri(URI janusUri)
           
 void setSecret(String secret)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JanusRestClientMock

public JanusRestClientMock()
Method Detail

getMetadataByEntityId

public nl.surfnet.coin.janus.domain.EntityMetadata getMetadataByEntityId(String entityId)
Specified by:
getMetadataByEntityId in interface nl.surfnet.coin.janus.Janus

getEntityIdsByMetaData

public List<String> getEntityIdsByMetaData(nl.surfnet.coin.janus.Janus.Metadata key,
                                           String value)
Specified by:
getEntityIdsByMetaData in interface nl.surfnet.coin.janus.Janus

getAllowedSps

public List<String> getAllowedSps(String idpentityid)
Specified by:
getAllowedSps in interface nl.surfnet.coin.janus.Janus

getAllowedSps

public List<String> getAllowedSps(String idpentityid,
                                  String revision)
Specified by:
getAllowedSps in interface nl.surfnet.coin.janus.Janus

getSpList

public List<nl.surfnet.coin.janus.domain.EntityMetadata> getSpList()
Specified by:
getSpList in interface nl.surfnet.coin.janus.Janus

getIdpList

public List<nl.surfnet.coin.janus.domain.EntityMetadata> getIdpList()
Specified by:
getIdpList in interface nl.surfnet.coin.janus.Janus

getArp

public nl.surfnet.coin.janus.domain.ARP getArp(String entityId)
Specified by:
getArp in interface nl.surfnet.coin.janus.Janus

isConnectionAllowed

public boolean isConnectionAllowed(String spEntityId,
                                   String idpEntityId)
Specified by:
isConnectionAllowed in interface nl.surfnet.coin.janus.Janus

getEntity

public nl.surfnet.coin.janus.domain.JanusEntity getEntity(String entityId)
Specified by:
getEntity in interface nl.surfnet.coin.janus.Janus

parseJsonData

public Object parseJsonData(org.codehaus.jackson.type.TypeReference<? extends Object> typeReference,
                            String jsonFile)

setJanusUri

public void setJanusUri(URI janusUri)

setUser

public void setUser(String user)

setSecret

public void setSecret(String secret)


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