SymbIoTeLibraries
Classes | Public Member Functions | List of all members
eu.h2020.symbiote.client.feign.FeignCRAMClient Class Reference
Inheritance diagram for eu.h2020.symbiote.client.feign.FeignCRAMClient:
Inheritance graph
Collaboration diagram for eu.h2020.symbiote.client.feign.FeignCRAMClient:
Collaboration graph

Public Member Functions

 FeignCRAMClient (ISecurityHandler securityHandler, String coreAddress)
 
ResourceUrlsResponse getResourceUrl (String resourceId, boolean serverValidation, Set< String > homePlatformIds)
 
ResourceUrlsResponse getResourceUrl (Set< String > resourceIds, boolean serverValidation, Set< String > homePlatformIds)
 
ResourceUrlsResponse getResourceUrlAsGuest (String resourceId, boolean serverValidation)
 
ResourceUrlsResponse getResourceUrlAsGuest (Set< String > resourceIds, boolean serverValidation)
 

Detailed Description

symbIoTe Core Resource Access Manager client based on Feign

Author
Vasilis Glykantzis

Constructor & Destructor Documentation

◆ FeignCRAMClient()

eu.h2020.symbiote.client.feign.FeignCRAMClient.FeignCRAMClient ( ISecurityHandler  securityHandler,
String  coreAddress 
)
Parameters
securityHandlerthe security handler implementation that is going to be used
coreAddressthe base address of the symbIoTe core

Member Function Documentation

◆ getResourceUrl() [1/2]

ResourceUrlsResponse eu.h2020.symbiote.client.feign.FeignCRAMClient.getResourceUrl ( String  resourceId,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Queries CRAM with home token for getting the url of a single resource

Parameters
resourceIdthe id of the resource
serverValidationif true it will validate CRAM
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request
Returns
the CRAM response

Implements eu.h2020.symbiote.client.interfaces.CRAMClient.

◆ getResourceUrl() [2/2]

ResourceUrlsResponse eu.h2020.symbiote.client.feign.FeignCRAMClient.getResourceUrl ( Set< String >  resourceIds,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Queries CRAM with home token for getting the urls of a list of resources

Parameters
resourceIdsa list containing the ids of the resources
serverValidationif true it will validate CRAM
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request
Returns
the CRAM response

Implements eu.h2020.symbiote.client.interfaces.CRAMClient.

◆ getResourceUrlAsGuest() [1/2]

ResourceUrlsResponse eu.h2020.symbiote.client.feign.FeignCRAMClient.getResourceUrlAsGuest ( String  resourceId,
boolean  serverValidation 
)

Queries CRAM with guest token for getting the url of a single resource

Parameters
resourceIdthe id of the resource
serverValidationif true it will validate CRAM
Returns
the CRAM response

Implements eu.h2020.symbiote.client.interfaces.CRAMClient.

◆ getResourceUrlAsGuest() [2/2]

ResourceUrlsResponse eu.h2020.symbiote.client.feign.FeignCRAMClient.getResourceUrlAsGuest ( Set< String >  resourceIds,
boolean  serverValidation 
)

Queries CRAM with guest token for getting the urls of a list of resources

Parameters
resourceIdsa list containing the ids of the resources
serverValidationif true it will validate CRAM
Returns
the CRAM response

Implements eu.h2020.symbiote.client.interfaces.CRAMClient.


The documentation for this class was generated from the following file: