spDO, authnReqDTO.getRpSessionId());
}
//Build the response for the successful scenario
ResponseBuilder respBuilder = new ResponseBuilder();
Response response = respBuilder.buildResponse(authnReqDTO, sessionId);
SAMLSSORespDTO samlssoRespDTO = new SAMLSSORespDTO();
samlssoRespDTO.setRespString(SAMLSSOUtil.encode(SAMLSSOUtil.marshall(response)));
samlssoRespDTO.setSessionEstablished(true);
samlssoRespDTO.setAssertionConsumerURL(authnReqDTO.getAssertionConsumerURL());
samlssoRespDTO.setLoginPageURL(authnReqDTO.getLoginPageURL());