use of org.openecard.addons.cg.ex.FatalActivationError in project open-ecard by ecsec.
the class TCTokenHandler method handleNoCardActivate.
/**
* Activates the client according to the received TCToken.
*
* @param token The activation TCToken.
* @return The response containing the result of the activation process.
*/
public BindingResult handleNoCardActivate(TCToken token) {
if (LOG.isDebugEnabled()) {
try {
WSMarshaller m = WSMarshallerFactory.createInstance();
LOG.debug("TCToken:\n{}", m.doc2str(m.marshal(token)));
} catch (TransformerException | WSMarshallerException ex) {
// it's no use
}
}
try {
// process binding and follow redirect addresses afterwards
ChipGatewayResponse response = processBinding(token);
// fill in values, so it is usuable by the transport module
response.finishResponse();
return response;
} catch (RedirectionBaseError ex) {
LOG.error(ex.getMessage(), ex);
return ex.getBindingResult();
} catch (FatalActivationError ex) {
LOG.error(ex.getMessage(), ex);
return ex.getBindingResult();
}
}
Aggregations