public class SpecificConnectorCommunicationServiceImpl extends Object implements SpecificCommunicationService
SpecificCommunicationService
to be used for exchanging of
ILightRequest
and ILightResponse
between the specific
connector and node connectorModifier and Type | Method and Description |
---|---|
eu.eidas.auth.commons.light.ILightRequest |
getAndRemoveRequest(String tokenBase64,
Collection<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> registry)
Removes the
ILightRequest from the request communication cache
using as id/key the one obtained from the BinaryLightToken . |
eu.eidas.auth.commons.light.ILightResponse |
getAndRemoveResponse(String tokenBase64,
Collection<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> registry)
Removes the
ILightResponse from the response communication cache
using as id/key the one obtained from the BinaryLightToken . |
eu.eidas.auth.commons.tx.BinaryLightToken |
putRequest(eu.eidas.auth.commons.light.ILightRequest iLightRequest)
Puts the
ILightRequest in the request communication cache. |
eu.eidas.auth.commons.tx.BinaryLightToken |
putResponse(eu.eidas.auth.commons.light.ILightResponse iLightResponse)
Puts
ILightResponse in the response communication cache. |
public eu.eidas.auth.commons.tx.BinaryLightToken putRequest(eu.eidas.auth.commons.light.ILightRequest iLightRequest) throws SpecificCommunicationException
SpecificCommunicationService
ILightRequest
in the request communication cache.
Creates a BinaryLightToken
which id will be used as key for the ILightRequest
.
putRequest
in interface SpecificCommunicationService
iLightRequest
- the request to be put in the cacheBinaryLightToken
that holds the id/key to the ILightRequest
in the cacheSpecificCommunicationException
- if the BinaryLightToken
could not be created.public eu.eidas.auth.commons.light.ILightRequest getAndRemoveRequest(String tokenBase64, Collection<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> registry) throws SpecificCommunicationException
SpecificCommunicationService
ILightRequest
from the request communication cache
using as id/key the one obtained from the BinaryLightToken
.getAndRemoveRequest
in interface SpecificCommunicationService
tokenBase64
- the BinaryLightToken
in Base64 that holds the id to remove the ILightRequest
registry
- the collection of attributeDefinitionsILightRequest
corresponding to the idSpecificCommunicationException
- if the id could not be obtainedpublic eu.eidas.auth.commons.tx.BinaryLightToken putResponse(eu.eidas.auth.commons.light.ILightResponse iLightResponse) throws SpecificCommunicationException
SpecificCommunicationService
ILightResponse
in the response communication cache.
Creates a BinaryLightToken
which id will be used as key for the ILightResponse
.
putResponse
in interface SpecificCommunicationService
iLightResponse
- the ILightResponse
to put in the cacheBinaryLightToken
that holds the id/key to the ILightResponse
in the cacheSpecificCommunicationException
- if the BinaryLightToken
could not be created.public eu.eidas.auth.commons.light.ILightResponse getAndRemoveResponse(String tokenBase64, Collection<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> registry) throws SpecificCommunicationException
SpecificCommunicationService
ILightResponse
from the response communication cache
using as id/key the one obtained from the BinaryLightToken
.getAndRemoveResponse
in interface SpecificCommunicationService
tokenBase64
- the BinaryLightToken
in Base64 that holds the id to remove the ILightResponse
registry
- the collection of attributeDefinitionsILightResponse
corresponding to the idSpecificCommunicationException
- if the id could not be obtainedCopyright © 2020. All Rights Reserved.