nl.surfnet.coin.csa.util
Class JanusRestClientMock
java.lang.Object
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 classes/interfaces inherited from interface nl.surfnet.coin.janus.Janus |
nl.surfnet.coin.janus.Janus.Metadata |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JanusRestClientMock
public JanusRestClientMock()
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.