|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.janus.JanusRestClient
public class JanusRestClient
REST client implementation for Janus.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface nl.surfnet.coin.janus.Janus |
|---|
Janus.Metadata |
| Constructor Summary | |
|---|---|
JanusRestClient()
|
|
| Method Summary | |
|---|---|
List<String> |
getAllowedSps(String idpentityid)
Refer to Janus.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 |
JanusEntity |
getEntity(String entityId)
Gets the Janus Entity information for the given entityId |
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. |
void |
setJanusUri(URI janusUri)
|
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
|
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 |
|---|
public JanusRestClient()
| Method Detail |
|---|
public EntityMetadata getMetadataByEntityId(String entityId)
getMetadataByEntityId in interface JanusentityId - the entityId
public List<String> getEntityIdsByMetaData(Janus.Metadata key,
String value)
Janus
getEntityIdsByMetaData in interface Januskey - the metadata keyvalue - the value the give metadata key should have
public List<String> getAllowedSps(String idpentityid)
JanusJanus.getAllowedSps(String, String) but without the revision parameter.
getAllowedSps in interface Janus
public List<String> getAllowedSps(String idpentityid,
String revision)
Janus
getAllowedSps in interface Janusidpentityid - the IdPs entity id.revision - the revision.
public List<EntityMetadata> getSpList()
Janus
getSpList in interface Januspublic ARP getArp(String entityId)
Janus
getArp in interface JanusentityId - the identifier of the entity
public boolean isConnectionAllowed(String spEntityId,
String idpEntityId)
Janus
isConnectionAllowed in interface JanusspEntityId - identifier of the Service ProvideridpEntityId - identifier of the Identity Provider
public JanusEntity getEntity(String entityId)
Janus
getEntity in interface JanusentityId - unique identifier of a Janus entity
JanusEntitypublic void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - the restTemplate to setpublic void setJanusUri(URI janusUri)
janusUri - the janusUri to setpublic void setUser(String user)
user - the user to setpublic void setSecret(String secret)
secret - the secret to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||