integration-impl/src/main/java/se/idsec/signservice/integration/process/impl/DefaultSignResponseProcessor.java
protected void validateReceivedRequest(final byte[] request, final SignRequestWrapper sentRequest)
      throws SignServiceIntegrationException {

    if (request == null || request.length == 0) {
      final String msg = String.format("SignResponse does not contain a Request element - this is required [request-id='%s']", sentRequest
        .getRequestID());
      if (this.processingConfiguration.isStrictProcessing()) {
        log.error("{}: {}", CorrelationID.id(), msg);
        throw new SignServiceProtocolException(msg);
      }
      log.warn("{}: {}", CorrelationID.id(), msg);
    }

    // TODO: If strict processing is active compare this request with our request from the session state.
  }
/**
   * Validates the received Request element (throws only if strict processing is active).
   * 
   * @param request
   *          the received Request element
   * @param sentRequest
   *          the request that was actually sent
   * @throws SignServiceIntegrationException
   *           if the Request is not present or differs from what was sent
   */
Validates the received Request element (throws only if strict processing is active).

@param request
the received Request element
@param sentRequest
the request that was actually sent
@throws SignServiceIntegrationException
if the Request is not present or differs from what was sent
Validates the received Request element ( throws only if strict processing is active ) . @param request the received Request element @param sentRequest the request that was actually sent @throws SignServiceIntegrationException if the Request is not present or differs from what was sent
protected void validateReceivedRequest(final byte[] request, final SignRequestWrapper sentRequest)
      throws SignServiceIntegrationException {
    if (request == null || request.length == 0) {
      final String msg = String.format("SignResponse does not contain a Request element - this is required [request-id='%s']", sentRequest
        .getRequestID());
      if (this.processingConfiguration.isStrictProcessing()) {
        log.error("{}: {}", CorrelationID.id(), msg);
        throw new SignServiceProtocolException(msg);
      }
      log.warn("{}: {}", CorrelationID.id(), msg);
    }
  }
protected void validateReceivedRequest ( final byte [ ] request , final SignRequestWrapper sentRequest ) throws SignServiceIntegrationException { if ( request == null || request . length == 0 ) { final String msg = String . format ( "SignResponse does not contain a Request element - this is required [request-id='%s']" , sentRequest . getRequestID ( ) ) ; if ( this . processingConfiguration . isStrictProcessing ( ) ) { log . error ( "{}: {}" , CorrelationID . id ( ) , msg ) ; throw new SignServiceProtocolException ( msg ) ; } log . warn ( "{}: {}" , CorrelationID . id ( ) , msg ) ; } }
Validates the received Request element (throws only if strict processing is active).
Validates the received Request element ( throws only if strict processing is active ) .
// TODO: If strict processing is active compare this request with our request from the session state.