question: private RelyingParty validateRelyingParty ( HttpServletRequest request , String tenantName ) { Validate . notNull ( request , "request" ) ; Validate . notEmpty ( tenantName , "tenantName" ) ; DefaultIdmAccessorFactory idmFactory = new DefaultIdmAccessorFactory ( ) ; Validate . notNull ( idmFactory , "idmFactory" ) ; IdmAccessor idmAccessor = idmFactory . getIdmAccessor ( ) ; idmAccessor . setTenant ( tenantName ) ; String encodedEntityId = request . getParameter ( Shared . RELYINGPARTY_ENTITYID ) ; if ( encodedEntityId == null || encodedEntityId . isEmpty ( ) ) { logger . error ( "No Relying Party's entity ID found. Ignore the request!" ) ; return null ; } String rpEntityId = new String ( Base64 . decode ( encodedEntityId ) ) ; RelyingParty rp = idmAccessor . getRelyingPartyByUrl ( rpEntityId ) ; if ( rp != null ) { return rp ; } else { logger . error ( "Unknown relying party: " + rpEntityId ) ; return null ; } }
target:  This method validates the relying party.